public bool RemoveConfirmListener(CancelCallback callback, object userData) { CancelListener item = new CancelListener(); item.SetCallback(callback); item.SetUserData(userData); return(this.m_cancelListeners.Remove(item)); }
public bool RegisterCancelListener(CancelCallback callback, object userData) { CancelListener item = new CancelListener(); item.SetCallback(callback); item.SetUserData(userData); if (this.m_cancelListeners.Contains(item)) { return(false); } this.m_cancelListeners.Add(item); return(true); }