Exemple #1
0
    public bool RemoveClickListener(OnClickedCallback callback, object userData)
    {
        OnClickedListener item = new OnClickedListener();

        item.SetCallback(callback);
        item.SetUserData(userData);
        return(this.m_clickListeners.Remove(item));
    }
Exemple #2
0
    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);
    }