Ejemplo n.º 1
0
 override protected Action Command()
 {
     //go back to the default mode
     return(delegate
     {
         if (stateAccessor.GetCurrentMode() == StateAccessor.Mode.Default)
         {
             Debug.Log("the state accessor is default");
             return;
         }
         brain.GetComponent <ResetState>().ResetEverything();
     });
 }