Beispiel #1
0
 public void OnCardDestroy(CardPresenterController presenter, System.Action callback)
 {
     if (null != onDestroyActionChain)
     {
         presenter.ExecuteActionChain(onDestroyActionChain, callback);
     }
     else
     {
         if (null != callback)
         {
             callback();
         }
     }
 }
Beispiel #2
0
    public void OnCardPlay(CardPresenterController presenter, System.Action callback)
    {
        if (cardPlayed)
        {
            return;
        }

        cardPlayed = true;

        if (null != onPlayActionChain)
        {
            presenter.ExecuteActionChain(onPlayActionChain, callback);
        }
        else
        {
            if (null != callback)
            {
                callback();
            }
        }
    }