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