public FSMState <T> GetTriggeredState(FSMTrigger <T> fsmTgr) { if (triggerStateDict.ContainsKey(fsmTgr)) { return(triggerStateDict[fsmTgr]); } return(null); }
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); }
public void RemoveTrigger(FSMTrigger <T> trans) { if (!triggerStateDict.ContainsKey(trans)) { return; } triggerStateDict.Remove(trans); triggerList.Remove(trans); }
public void AddTrigger(FSMTrigger <T> trans, FSMState <T> state) { if (triggerStateDict.ContainsKey(trans)) { return; } triggerStateDict.Add(trans, state); triggerList.Add(trans); }