private void HideAll() { ui.Hide(); menu.Hide(); winScreen.Hide(); DeathScreen.Hide(); }
//Hides all the ui elements that are in the ui scen public void HideAllUI() { //Hide all the ui elements, used when transitioning from one scene to another menu.Hide(); wait.Hide(); programming.Hide(); run.Hide(); win.Hide(); lose.Hide(); }
public void StartGame() { LoadHighScore(); _waveTimer.Start(); GUI.InGame(); GUI.UpdateHighScore(highScore); GUI.ShowGetReady(score); _world = (World)_worldScene.Instance(); AddChild(_world); _world.Connect("OnGameOver", this, nameof(GameOver)); _world.Connect("OnWaveWon", this, nameof(WaveWon)); _world.Hide(); _victoryAudio.Play(); GetTree().Paused = true; }
private void HideAll() { //Hide all the UI screens menuPanel.Hide(); winPanel.Hide(); losePanel.Hide(); creditsPanel.Hide(); uiPanel.Hide(); //Hide the background background.Hide(); //Hide all the buttons startBtn.Hide(); exitBtn.Hide(); menuBtn.Hide(); smallExitBtn.Hide(); creditsBtn.Hide(); }
public static void HideForSeconds(float sec, Node2D node2D, SceneTree sceneTree) { node2D.Hide(); sceneTree.CreateTimer(sec).Connect("timeout", node2D, "show"); }
public void HideBlood() { _bloodParticlesHolder.Hide(); }