|
|
@@ -725,6 +725,7 @@ public class Demonic : MoveCharacter
|
|
|
if (canFly)
|
|
|
{
|
|
|
rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezePositionY;
|
|
|
+ rb.useGravity = false;
|
|
|
}
|
|
|
break;
|
|
|
case CharacterState.Float:
|
|
|
@@ -790,6 +791,7 @@ public class Demonic : MoveCharacter
|
|
|
if (canFly)
|
|
|
{
|
|
|
rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
+ rb.useGravity = true;
|
|
|
flyHeight = Random.Range(minHeight, maxHeight);
|
|
|
}
|
|
|
|