Пример #1
0
 public void LoadScene(Scene scene)
 {
     if (scene != null)
     {
         if (ActiveScene != null)
         {
             UnloadScene();
         }
         activeScene = scene;
         activeScene.Initialize();
     }
 }
Пример #2
0
        public void LoadScene(Scene newScene)
        {
            if (newScene != null)
            {
                if (activeScene != null)
                {
                    UnloadScene();
                }

                activeScene = newScene;
                activeScene.Initialize();
            }
        }
Пример #3
0
        /// <summary>
        /// Adds a scene to the internal scene collection
        /// </summary>
        /// <param name="scene">New scene</param>
        private void AddScene(Scene scene)
        {
            this.scenes.Add(scene);
            this.scenes.Sort(
                delegate(Scene p1, Scene p2)
            {
                return(p2.Order.CompareTo(p1.Order));
            });

            scene.Initialize();

            scene.Initialized();

            scene.SetResources();
        }
Пример #4
0
 private void InitScene(Scene scene)
 {
     scene.Initialize();
 }