|
@@ -275,10 +275,10 @@ public class AttributeStatus : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
vec3.x = -vec3.x;
|
|
vec3.x = -vec3.x;
|
|
|
}
|
|
}
|
|
|
|
|
+ rb.useGravity = true;
|
|
|
|
|
+ rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
rb.AddForce(vec3 * shotDown.force * (1 - resistances.ShotDown),ForceMode.Impulse);
|
|
rb.AddForce(vec3 * shotDown.force * (1 - resistances.ShotDown),ForceMode.Impulse);
|
|
|
curSpecialStates[0] = SpecialState.ShotDown;
|
|
curSpecialStates[0] = SpecialState.ShotDown;
|
|
|
- rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
|
|
- rb.useGravity = true;
|
|
|
|
|
character.ChangeState(CharacterState.SpecialStatus);
|
|
character.ChangeState(CharacterState.SpecialStatus);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|