Ejemplo n.º 1
0
 public static void UnsubscribeInputChange(EInput _eInput, NotifyInputChange _nCallback)
 {
     if (s_cInstance.m_mInputCallbacks.ContainsKey(_eInput))
     {
         s_cInstance.m_mInputCallbacks[_eInput].Remove(_nCallback);
     }
 }
Ejemplo n.º 2
0
    public static void SubscribeInputChange(EInput _eInput, NotifyInputChange _nCallback)
    {
        if (!s_cInstance.m_mInputCallbacks.ContainsKey(_eInput))
        {
            s_cInstance.m_mInputCallbacks.Add(_eInput, new List <NotifyInputChange>());
        }

        s_cInstance.m_mInputCallbacks[_eInput].Add(_nCallback);
    }