public GameplayScreen GoToGameplay(MoonHunterState gameState) { GameplayScreen screen = (GameplayScreen)gameplayScreen.Instance(); PackedScene levelScene = GD.Load <PackedScene>(gameState.CurrentLevel.LevelFile); screen.CurrentLevel = (BaseLevel)levelScene.Instance(); GotoScreen(screen); return(screen); }
public void StartGame() { GameState = new MoonHunterState(); GoToLastSave(); }