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

        item.SetCallback(callback);
        item.SetUserData(userData);
        this.m_hideListeners.Remove(item);
    }
예제 #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);
    }