|
@@ -254,7 +254,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
vec3.x = -vec3.x;
|
|
vec3.x = -vec3.x;
|
|
|
}
|
|
}
|
|
|
- rb.velocity = vec3 * blowUp.force * (1 - resistances.BlowUp);
|
|
|
|
|
|
|
+ rb.AddForce(vec3 * blowUp.force * (1 - resistances.BlowUp), ForceMode.Impulse);
|
|
|
curSpecialStates[0] = SpecialState.BlownUp;
|
|
curSpecialStates[0] = SpecialState.BlownUp;
|
|
|
character.ChangeState(CharacterState.SpecialStatus);
|
|
character.ChangeState(CharacterState.SpecialStatus);
|
|
|
}
|
|
}
|
|
@@ -275,7 +275,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
{
|
|
{
|
|
|
vec3.x = -vec3.x;
|
|
vec3.x = -vec3.x;
|
|
|
}
|
|
}
|
|
|
- rb.velocity = vec3 * shotDown.force * (1 - resistances.ShotDown);
|
|
|
|
|
|
|
+ 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.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
rb.useGravity = true;
|
|
rb.useGravity = true;
|