public FSMState <T> GetTriggeredState(FSMTrigger <T> fsmTgr)
 {
     if (triggerStateDict.ContainsKey(fsmTgr))
     {
         return(triggerStateDict[fsmTgr]);
     }
     return(null);
 }
Exemple #2
0
 public FSMState <T> GetTriggeredState(FSMTrigger <T> trans)
 {
     if (triggerStateDict.ContainsKey(trans))
     {
         return(triggerStateDict[trans]);
     }
     return(null);
 }
 public void RemoveTrigger(FSMTrigger <T> fsmTgr)
 {
     if (!triggerStateDict.ContainsKey(fsmTgr))
     {
         return;
     }
     triggerStateDict.Remove(fsmTgr);
     triggerList.Remove(fsmTgr);
 }
 public void AddTrigger(FSMTrigger <T> fsmTgr, FSMState <T> state)
 {
     if (triggerStateDict.ContainsKey(fsmTgr))
     {
         return;
     }
     triggerStateDict.Add(fsmTgr, state);
     triggerList.Add(fsmTgr);
 }
Exemple #5
0
 public void RemoveTrigger(FSMTrigger <T> trans)
 {
     if (!triggerStateDict.ContainsKey(trans))
     {
         return;
     }
     triggerStateDict.Remove(trans);
     triggerList.Remove(trans);
 }
Exemple #6
0
 public void AddTrigger(FSMTrigger <T> trans, FSMState <T> state)
 {
     if (triggerStateDict.ContainsKey(trans))
     {
         return;
     }
     triggerStateDict.Add(trans, state);
     triggerList.Add(trans);
 }