Example #1
0
        public override void Close(ExitAction exitAction)
        {
            Button_Play.Close();
            Button_Quit.Close();
#if DEBUG
            Button_Editor.Close();
#endif

            if (exitAction == ExitAction.ExitGame)
            {
                ScreenTransition.Begin(() => Data.Root.Exit());
            }
        }
Example #2
0
 public static void UpdateScenes()
 {
     if (NextScreen != null)
     {
         ScreenTransition.Begin(() =>
         {
             Pool.Reset();
             CurrentScreen = NextScreen;
             NextScreen    = null;
             CurrentScreen.Open();
         });
     }
     ScreenTransition.Update();
     CurrentScreen.Update();
 }