Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void UseCard(AbstractCard card, AbstractCharactor reciver)
 {
     card.Use(reciver);
 }
Exemplo n.º 3
0
 public abstract void OnUse(AbstractCharactor user, AbstractCharactor reciver, AbstractCard thisCard);