public override void _Process(float delta) { if (Input.IsActionJustPressed("ui_accept") || Input.IsActionJustPressed("ui_left") || Input.IsActionJustPressed("ui_right") || Input.IsActionJustPressed("ui_select") || Input.IsActionJustPressed("ui_cancel")) { game.GotoScene(Generic2dGame.Scenes.Level1); } }
private void _on_ButtonSound_finished() { if (startGameNext == true) { game.GotoScene(Generic2dGame.Scenes.CutsceneIntro); } }
private void GotoGameover() { game.PlayerScore = GetNode <HUD>("HUD").GetCoins(); if (game.PlayerScore > game.HighestScore) { game.HighestScore = game.PlayerScore; } game.StorePersistedData(); game.GotoScene(Generic2dGame.Scenes.Gameover); }