Esempio n. 1
0
 public static void UnsubscribeClientAxisChange(EAxis _eClientAxis, NotifyClientAxisChange _nCallback)
 {
     if (s_cInstance.m_mClientAxisCallbacks.ContainsKey(_eClientAxis))
     {
         s_cInstance.m_mClientAxisCallbacks[_eClientAxis].Remove(_nCallback);
     }
 }
Esempio n. 2
0
    public static void SubscribeClientAxisChange(EAxis _eClientAxis, NotifyClientAxisChange _nCallback)
    {
        if (!s_cInstance.m_mClientAxisCallbacks.ContainsKey(_eClientAxis))
        {
            s_cInstance.m_mClientAxisCallbacks.Add(_eClientAxis, new List <NotifyClientAxisChange>());
        }

        s_cInstance.m_mClientAxisCallbacks[_eClientAxis].Add(_nCallback);
    }