/// <summary> /// Exit BotNavSim.state behaviour: remove environment, clear paths /// </summary> public static void Exit() { CamController.ClearAreaList(); CamController.ClearViewModeList(); environment.transform.Recycle(); paths.Clear(); }
/// <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; }