/// <summary>
 /// Go back to the previous screen
 /// </summary>
 /// <param name="t">The transition effect</param>
 protected void Previous(TransitionScreen t)
 {
     if (sceneManager.SceneList.Count() > 0)
     {
         sceneManager.ChangeScene(sceneManager.SceneList.ElementAt(sceneManager.SceneList.IndexOf(this) - 1), t);
     }
 }
        /// <summary>
        /// Instructs the Scene Manager to change the actual scene
        /// </summary>
        /// <param name="scene">The new Scene</param>
        /// <param name="transition">The transition between the actual scene and the new scene</param>
        /// <returns></returns>
        public void ChangeScene(GameScreen scene, TransitionScreen transFX)
        {
            this.NextScene  = scene.Name;
            this.transition = transFX;

            this.InTransition = true;

            AddScene(scene);
        }
        /// <summary>
        /// Advance to the next screen
        /// </summary>
        /// <param name="s">New Scene if there is no other to advance</param>
        /// <param name="t">The transition effect</param>
        protected void Next(GameScreen s, TransitionScreen t)
        {
            GameScreen next = s;

            if (sceneManager.SceneList.Count() > sceneManager.SceneList.IndexOf(this) + 1)
            {
                next = sceneManager.SceneList.ElementAt(sceneManager.SceneList.IndexOf(this) + 1);
            }

            sceneManager.ChangeScene(next, t);
        }
        /// <summary>
        /// Instructs the Scene Manager to change the actual scene
        /// </summary>
        /// <param name="scene">The new Scene</param>
        /// <param name="transition">The transition between the actual scene and the new scene</param>
        /// <returns></returns>
        public void ChangeScene(GameScreen scene, TransitionScreen transFX)
        {
            this.NextScene = scene.Name;
            this.transition = transFX;

            this.InTransition = true;

            AddScene(scene);
        }
 public void PopUp(GameScreen scene, TransitionScreen transFX)
 {
 }
 public void PopUp(GameScreen scene, TransitionScreen transFX)
 {
 }
 /// <summary>
 /// Go back to the previous screen
 /// </summary>
 /// <param name="t">The transition effect</param>
 protected void Previous(TransitionScreen t)
 {
     if (sceneManager.SceneList.Count() > 0)
         sceneManager.ChangeScene(sceneManager.SceneList.ElementAt(sceneManager.SceneList.IndexOf(this) - 1), t);
 }
        /// <summary>
        /// Advance to the next screen
        /// </summary>
        /// <param name="s">New Scene if there is no other to advance</param>
        /// <param name="t">The transition effect</param>
        protected void Next(GameScreen s, TransitionScreen t)
        {
            GameScreen next = s;

            if (sceneManager.SceneList.Count() > sceneManager.SceneList.IndexOf(this) + 1)
                next = sceneManager.SceneList.ElementAt(sceneManager.SceneList.IndexOf(this) + 1);

            sceneManager.ChangeScene(next, t);
        }