Ejemplo n.º 1
0
 public void Harm(int damage)
 {
     FlashLight.Injury();
     health -= damage;
     OnScreenDisplay.SetHealthPoints((int)health, false);
     //Debug.Log (health);
     if (health <= 0)
     {
         Die();
     }
     else
     {
         audio.Play();
         OnScreenDisplay.PostMessage("Taking Damage!", Color.red);
     }
 }