Beispiel #1
0
 public void DetachAndOrDestroyScene()
 {
     if (scene != null)
     {
         if (viewport != null)
         {
             viewport.AttachedScene = null;
         }
         scene.Dispose();
         scene = null;
     }
 }
Beispiel #2
0
        void SceneDestroy()
        {
            if (createdScene != null)
            {
                var destroyedScene = createdScene;

                createdScene.Dispose();
                createdScene       = null;
                createdSceneSource = null;

                SceneDestroyed?.Invoke(this, destroyedScene);
            }
        }