Example #1
0
 public void TakeDamage(int damage)
 {
     if (!invincibility.isInvincible())
     {
         numLives--;
         invincibility.ActivateInvincibility();
     }
     if (numLives <= 0)
     {
         GameManager.instance.Died(true);
     }
 }