示例#1
0
 public void Transition(GameStateCodes newStateCode)
 {
     if (transitionFunctionMappings.ContainsKey(newStateCode))
     {
         TransitionFunc transitionFunc = transitionFunctionMappings[newStateCode];
         transitionFunc();
     }
 }
示例#2
0
 public void Add(TState state, TransitionFunc transition)
 {
     _table.Add(state, transition);
 }