Example #1
0
 /// <summary>
 /// Exit BotNavSim.state behaviour: remove environment, clear paths
 /// </summary>
 public static void Exit()
 {
     CamController.ClearAreaList();
     CamController.ClearViewModeList();
     environment.transform.Recycle();
     paths.Clear();
 }
Example #2
0
 /// <summary>
 /// Exit simulation.
 /// </summary>
 public static void Exit()
 {
     Debug.Log("Simulation Exit.");
     Instance.StopAllCoroutines();
     settings = null;
     if (Log.logging)
     {
         Log.Stop(StopCode.Unspecified);
     }
     if (robot)
     {
         robot.Recycle();
     }
     if (environment)
     {
         environment.transform.Recycle();
     }
     CamController.ClearAreaList();
     CamController.ClearViewModeList();
     state = State.inactive;
 }