public void RemoveHideListener(OnHideCallback callback, object userData) { OnHideListener item = new OnHideListener(); item.SetCallback(callback); item.SetUserData(userData); this.m_hideListeners.Remove(item); }
public bool RegisterHideListener(OnHideCallback callback, object userData) { OnHideListener item = new OnHideListener(); item.SetCallback(callback); item.SetUserData(userData); if (this.m_hideListeners.Contains(item)) { return(false); } this.m_hideListeners.Add(item); return(true); }