Example #1
0
 public void TakeGunDamage(float damage, float power, Vector3 pos, Quaternion dir)
 {
     if (rigidbody != null)
     {
         rigidbody.AddForceAtPosition(-dir.eulerAngles * power, pos, ForceMode.Force);
         if (gameObject.CompareTag("Body"))
         {
             bloodParticleSystem.Create(pos, dir, transform);
         }
     }
     damageSystem.OnGunDamageTaken(damage, transform);
 }