Esempio n. 1
0
    public bool RemoveRecruitsChangedListener(RecruitsChangedCallback callback)
    {
        RecruitsChangedListener item = new RecruitsChangedListener();

        item.SetCallback(callback);
        return(this.m_recruitsChangedListeners.Remove(item));
    }
Esempio n. 2
0
    public bool AddRecruitsChangedListener(RecruitsChangedCallback callback)
    {
        RecruitsChangedListener item = new RecruitsChangedListener();

        item.SetCallback(callback);
        if (this.m_recruitsChangedListeners.Contains(item))
        {
            return(false);
        }
        this.m_recruitsChangedListeners.Add(item);
        return(true);
    }