示例#1
0
    public bool RemoveRecentOpponentListener(RecentOpponentCallback callback)
    {
        RecentOpponentListener item = new RecentOpponentListener();

        item.SetCallback(callback);
        item.SetUserData(null);
        return(this.m_recentOpponentListeners.Remove(item));
    }
示例#2
0
    public void AddRecentOpponentListener(RecentOpponentCallback callback)
    {
        RecentOpponentListener item = new RecentOpponentListener();

        item.SetCallback(callback);
        item.SetUserData(null);
        if (!this.m_recentOpponentListeners.Contains(item))
        {
            this.m_recentOpponentListeners.Add(item);
        }
    }