public bool RemoveClickListener(OnClickedCallback callback, object userData) { OnClickedListener item = new OnClickedListener(); item.SetCallback(callback); item.SetUserData(userData); return(this.m_clickListeners.Remove(item)); }
public bool RegisterClickListener(OnClickedCallback callback, object userData) { OnClickedListener item = new OnClickedListener(); item.SetCallback(callback); item.SetUserData(userData); if (this.m_clickListeners.Contains(item)) { return(false); } this.m_clickListeners.Add(item); return(true); }