Exemple #1
0
 public void Trigger(E_TriggerType type, object obj = null)
 {
     foreach (TriggerCallback callback in m_triggerList[type])
     {
         callback(obj);
     }
 }
Exemple #2
0
 public void RemoveTrigger(E_TriggerType type, TriggerCallback callback)
 {
     m_triggerList[type].RemoveItem(callback);
 }
Exemple #3
0
 public TriggerCallback AddTrigger(E_TriggerType type, TriggerCallback callback)
 {
     m_triggerList[type].Add(callback);
     return(callback);
 }