Esempio n. 1
0
 public static void RemoveEvent(Enum type, ECSEventHandle handle)
 {
     if (m_EventDict.ContainsKey(type))
     {
         m_EventDict[type] -= handle;
     }
 }
Esempio n. 2
0
 public void AddListener(string key, ECSEventHandle handle, bool certainty = false)
 {
     if (!certainty)
     {
         if (m_EventDict.ContainsKey(key))
         {
             m_EventDict[key] += handle;
         }
         else
         {
             m_EventDict.Add(key, handle);
         }
     }
     else
     {
         if (m_certaintyEventDict.ContainsKey(key))
         {
             m_certaintyEventDict[key] += handle;
         }
         else
         {
             m_certaintyEventDict.Add(key, handle);
         }
     }
 }
Esempio n. 3
0
 public static void AddEvent(Enum type, ECSEventHandle handle)
 {
     if (m_EventDict.ContainsKey(type))
     {
         m_EventDict[type] += handle;
     }
     else
     {
         m_EventDict.Add(type, handle);
     }
 }
Esempio n. 4
0
 public void RemoveListener(string key, ECSEventHandle handle, bool certainty = false)
 {
     if (!certainty)
     {
         if (m_EventDict.ContainsKey(key))
         {
             m_EventDict[key] -= handle;
         }
     }
     else
     {
         if (m_certaintyEventDict.ContainsKey(key))
         {
             m_certaintyEventDict[key] -= handle;
         }
     }
 }