public void Use(AbstractCharactor reciver) { Game.Instance.EventSystem.Call(EventType.BeforeCardUse, this, Owner, reciver); foreach (Component c in GetComponents()) { if (c is AbstractCardEffect) { (c as AbstractCardEffect).OnUse(Owner, reciver, this); } } //CardLogic(reciver); Game.Instance.EventSystem.Call(EventType.AfterCardUse, this, Owner, reciver); }
public void UseCard(AbstractCard card, AbstractCharactor reciver) { card.Use(reciver); }
public abstract void OnUse(AbstractCharactor user, AbstractCharactor reciver, AbstractCard thisCard);