Beispiel #1
0
 /// <summary>
 /// Applies damage to the power up.
 /// </summary>
 /// <param name="damage">The taken damage.</param>
 public void ApplyDamage(float damage)
 {
     lives -= damage;
     if (lives <= 0)
     {
         powerUpManager.ApplyPowerUp(type, duration);
         powerUpManager.DisplayPowerUp(type, duration, title);
         Dead();
     }
 }