public void OnEnemyShot(Vector3 shootDirection, Rigidbody shotRB) { StopAnimation(); ragdollController.EnableRagdoll(); if (shotRB) { shotRB.AddForce(shootDirection.normalized * 100f, ForceMode.Impulse); } }
public void OnEnemyShot(Vector3 shootDirection, Rigidbody shotRB) { StopAnimation(); ragdollController.EnableRagdoll(); if (shotRB) { shotRB.AddForce(shootDirection.normalized * 100f, ForceMode.Impulse); } }