Beispiel #1
0
 public override void handleEvent(HealEvent eventObj)
 {
     if (player.health < player.maxHealth)
     {
         if (player.health + eventObj.heal > player.maxHealth)
         {
             player.health = player.maxHealth;
         }
         else
         {
             player.health += eventObj.heal;
         }
     }
 }
Beispiel #2
0
 public virtual void handleEvent(HealEvent eventObj)
 {
     throw new NotImplementedException();
 }