public void DoPause() { //Set time.timescale to 0, this will cause animations and physics to stop updating Time.timeScale = 0; //call the ShowPausePanel function of the ShowPanels script showPanels.ShowGameOverPanel(); }
public void GameOver() { gameOver = true; PauseGame(); startOptions.ReturnToMenu(); menuController.ShowGameOverPanel(); }
void ReturnToMenu() { playMusic.PlaySelectedMusic(0, musicFadeInTime); if (PlayerPrefs.HasKey("GameState") && PlayerPrefs.GetString("GameState") == "GameOver") { showPanels.HideMenu(); showPanels.ShowGameOverPanel(); PlayerPrefs.DeleteKey("GameState"); } FadeIn(); }
public void lossScore() { chaosLvl += 15; ChaosLvlText.text = "CHAOS " + chaosLvl + "%"; addMsgFailed(); if (chaosLvl >= 100) { GameIsOn = false; CancelInvoke(); ResetSatellite(); PanelsManager.HideSatellites(); PanelsManager.ShowLogoGGJ(); GameOverScoreText.text = "You scored " + score + " points !"; PanelsManager.ShowGameOverPanel(); } //TODO: Add ShowMsgSound Here (Loss) }
private void gameOver() { Time.timeScale = 0; showPanels.ShowGameOverPanel(); }
public void TriggerGameOver() { score = ScoreManager._instance.CurrentScore; scoreText.text = score.ToString(); showPanels.ShowGameOverPanel(); }