Beispiel #1
0
 public static void FSMTransitionSuccessful(FSM FSM, FSMTransition FSMTransition, string WorkflowCallname)
 {
     FormatAndWriteLine("The transition : " + FSMTransition.GetType().ToString() + " has responded positively when " + WorkflowCallname + " was called. Switching to state : " + FSMTransition.StateToMove.name, FSM);
 }
Beispiel #2
0
 private FSMTransition ProcessTransitions()
 {
     foreach (var FSMTransition in FSMTransitions)
     {
         try
         {
             if (FSMTransition.ComputeTransition())
             {
                 return(FSMTransition);
             }
         }
         catch (Exception e)
         {
             Debug.LogException(e, this);
             throw FSMTransitionProcessingError.FromDetailedExecutionInformation(FSMTransition.GetType().ToString(), e);
         }
     }
     return(null);
 }