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; } } }
public virtual void handleEvent(HealEvent eventObj) { throw new NotImplementedException(); }