Beispiel #1
0
 public void TakeDamage(int bulletDamage, GameObject player)
 {
     if (health > 0)
     {
         hitParticles.Play();
         StopCoroutine("FlickerEffect");
         StartCoroutine("FlickerEffect");
         health -= bulletDamage;
         movementBehaviour.KnockBack();
         if (health <= 0)
         {
             KillByPlayer(player);
         }
     }
 }