コード例 #1
0
 public void shutdown()
 {
     sceneViewController.destroyCameras();
     virtualTextureLink.sceneUnloading(scene);
     lightManager.sceneUnloading(scene);
     objectMover.sceneUnloading(scene);
     modelController.destroyModel();
     scene.Dispose();
 }
コード例 #2
0
 /// <summary>
 /// Called when a scene is unloading, this is called by changeScene and Dispose.
 /// </summary>
 private void unloadScene()
 {
     if (movementSequenceController != null && movementSequenceController.Playing)
     {
         movementSequenceController.stopPlayback();
     }
     if (SceneUnloading != null && medicalController.CurrentScene != null)
     {
         SceneUnloading.Invoke(medicalController.CurrentScene);
     }
     if (anatomyController != null)
     {
         anatomyController.sceneUnloading();
     }
     if (sceneViewController != null)
     {
         sceneViewController.destroyCameras();
     }
     if (lightManager != null)
     {
         lightManager.sceneUnloading(medicalController.CurrentScene);
     }
 }
コード例 #3
0
 /// <summary>
 /// Callback for when the scene is unloading.
 /// </summary>
 /// <param name="controller"></param>
 /// <param name="scene"></param>
 private void sceneController_OnSceneUnloading(SceneController controller, SimScene scene)
 {
     sceneViewController.destroyCameras();
     lightManager.sceneUnloading(scene);
     selectionMovementTools.sceneUnloading(scene);
 }
コード例 #4
0
 private void SceneController_OnSceneUnloading(SceneController controller, SimScene scene)
 {
     lightManager.sceneUnloading(scene);
     sceneViewController.destroyCameras();
 }