Exemple #1
0
        public static void Update(GameTime gameTime)
        {
            if (currentScene != null)
                currentScene._update(gameTime);

            if (queuedScene != null)
            {
                if (currentScene != null)
                    currentScene._unload();

                currentScene = queuedScene;
                currentScene._load();
                queuedScene = null;
            }
        }
Exemple #2
0
 public static void QueueScene(Scene newScene)
 {
     queuedScene = newScene;
 }