public void AddPotion(IEventArgs potion) { EventArgsPotAth potAth = potion as EventArgsPotAth; Potions pot = potAth.Pot; int id = potAth.Id; _potions[id].SetPotion(pot); }
public void PotionsAth(IEventArgs args) { EventArgsPotAth potAth = (EventArgsPotAth)args; }
public void SetPotion(IEventArgs args) { EventArgsPotAth potAth = args as EventArgsPotAth; slot[potAth.Id].sprite = potAth.Pot == null ? None : potAth.Pot.icon; }