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()); } }
public static void UpdateScenes() { if (NextScreen != null) { ScreenTransition.Begin(() => { Pool.Reset(); CurrentScreen = NextScreen; NextScreen = null; CurrentScreen.Open(); }); } ScreenTransition.Update(); CurrentScreen.Update(); }