public bool RemoveRecentOpponentListener(RecentOpponentCallback callback) { RecentOpponentListener item = new RecentOpponentListener(); item.SetCallback(callback); item.SetUserData(null); return(this.m_recentOpponentListeners.Remove(item)); }
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); } }