public static void RemoveGameScene(GameScene gameScene)
        {
            GameScenes.Remove(gameScene);

            if (ActiveScene == gameScene) ActiveScene = null;
        }
        public static void Update(GameTime gameTime)
        {
            if (_newActiveScene != null)
            {
                if (ActiveScene != null) ActiveScene.Deactivated();
                ActiveScene = _newActiveScene;
                ActiveScene.Activated();
                _newActiveScene = null;
            }

            if (ActiveScene != null)
            {
                RenderContext.GameTime = gameTime;

                ActiveScene.Update(RenderContext);
            }

            RenderContext.TouchPanelState = TouchPanel.GetState();
            InputHelper.Update(RenderContext);
        }
 public static void AddGameScene(GameScene gameScene)
 {
     if (!GameScenes.Contains(gameScene))
         GameScenes.Add(gameScene);
 }
 public static bool SetActiveScene(string name)
 {
     _newActiveScene = GameScenes.FirstOrDefault(scene => scene.SceneName.Equals(name));
     return _newActiveScene != null;
 }