Ejemplo n.º 1
0
 public void Damage(float _damage)
 {
     CurrentHP -= _damage;
     Debug.Log(CurrentHP);
     UIM.UpdateHealth(CurrentHP / MaxHP);
     if (CurrentHP <= 0)
     {
         //Put death code here, IDK what this does yet
         CurrentHP = MaxHP;
         GM.Death();
     }
 }