|
|
@@ -307,6 +307,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
{
|
|
|
vec3.x = -vec3.x;
|
|
|
}
|
|
|
+ rb.velocity = Vector3.zero;
|
|
|
rb.AddForce(vec3 * blowUp.force * (1 - resistances.BlowUp), ForceMode.Impulse);
|
|
|
character.ani.Play("hitted", 0, 0);
|
|
|
hitState = 0;
|
|
|
@@ -325,6 +326,7 @@ public class AttributeStatus : MonoBehaviour
|
|
|
}
|
|
|
rb.useGravity = true;
|
|
|
rb.constraints = RigidbodyConstraints.FreezeRotation | RigidbodyConstraints.FreezePositionZ;
|
|
|
+ rb.velocity = Vector3.zero;
|
|
|
rb.AddForce(vec3 * shotDown.force * (1 - resistances.ShotDown), ForceMode.Impulse);
|
|
|
character.ani.Play("hitted", 0, 0);
|
|
|
hitState = 0;
|