Example #1
0
    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);
    }
Example #2
0
 public void StartGame()
 {
     GameState = new MoonHunterState();
     GoToLastSave();
 }