public void OnCardDestroy(CardPresenterController presenter, System.Action callback) { if (null != onDestroyActionChain) { presenter.ExecuteActionChain(onDestroyActionChain, callback); } else { if (null != callback) { callback(); } } }
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(); } } }