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; } }
public static void QueueScene(Scene newScene) { queuedScene = newScene; }