Example #1
0
 public static void FSMTransitionProcessError(FSM FSM, FSMTransitionProcessingError FSMTransitionProcessingError)
 {
     if (FSMDebug.Instance.FSMDebugConfiguration.WriteInFile)
     {
         FormatAndWriteLine(FSMTransitionProcessingError.Message, FSM);
         FSMDebug.Instance.Write(FSMTransitionProcessingError.InnerException.StackTrace + Environment.NewLine + FSMTransitionProcessingError.StackTrace + Environment.NewLine);
     }
 }
Example #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);
 }