Example #1
0
    public void RemoveHideListener(OnHideCallback callback, object userData)
    {
        OnHideListener item = new OnHideListener();

        item.SetCallback(callback);
        item.SetUserData(userData);
        this.m_hideListeners.Remove(item);
    }
Example #2
0
    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);
    }
Example #3
0
 public bool RegisterHideListener(OnHideCallback callback)
 {
     return(this.RegisterHideListener(callback, null));
 }