public void AddTrigger(string trigger, OnChatTrigger callback)
 {
     if (TriggerList.ContainsKey(trigger.ToLower()))
         TriggerList[trigger.ToLower()] += callback;
     else
         TriggerList.Add(trigger.ToLower(), callback);
 }
Beispiel #2
0
 public void AddTrigger(string trigger, OnChatTrigger callback)
 {
     if (TriggerList.ContainsKey(trigger.ToLower()))
     {
         TriggerList[trigger.ToLower()] += callback;
     }
     else
     {
         TriggerList.Add(trigger.ToLower(), callback);
     }
 }