public static void ReturnInput() { InputScreen input = (InputScreen)ScreenManager.getScreen(ScreenId.Input); input.returnInput(); BackToGame(); }
public static void Play() { Screen mainmenu = ScreenManager.getScreen(ScreenId.MainMenu); mainmenu.setState(false); GameScreen game = (GameScreen)ScreenManager.getScreen(ScreenId.Game); InputScreen input = (InputScreen)ScreenManager.getScreen(ScreenId.Input); // This function will be called to initialize the game screens and create the player with the inputed name input.setTitle("Input Name:"); input.setAction(game.init); input.setState(true); }