示例#1
0
 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();
 }
示例#2
0
 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)
    }
示例#5
0
文件: Rotate.cs 项目: maddog0/cycles
 private void gameOver()
 {
     Time.timeScale = 0;
     showPanels.ShowGameOverPanel();
 }
示例#6
0
 public void TriggerGameOver()
 {
     score          = ScoreManager._instance.CurrentScore;
     scoreText.text = score.ToString();
     showPanels.ShowGameOverPanel();
 }