Ejemplo n.º 1
0
    public void GameOver()
    {
        SimpleSoundManager.Instance.StopBGM();
        m_isFixedSlime = true;

        //スコア計算
        var score = GameManager.Instance.CalcScore(GameManager.Instance.stageNo, mainSlime.level, m_slimeNum);

        if (SaveManager.Instance.saveData.userData.highScore < score)
        {
            SaveManager.Instance.saveData.userData.highScore = score;
        }

        m_gameOverUI.gameObject.SetActive(true);
        m_gameOverUI.ShowGameOverUI(m_slimeType, GameManager.Instance.stageNo, m_slimeNum, score);
        m_isGameOver = true;
    }
Ejemplo n.º 2
0
 public void OnGameOver()
 {
     Time.timeScale = 0;
     gameOverUI.ShowGameOverUI((int)score);
 }