示例#1
0
    public void ShowResult()
    {
        FindObjectOfType <CenterFlame>().ResetMusic();

        AudioManager.instance.StopBgm();

        goUI.SetActive(true);
        for (int i = 0; i < txtCount.Length; i++)
        {
            txtCount[i].text = "0";
        }
        txtCoin.text     = "0";
        txtScore.text    = "0";
        txtMaxCombo.text = "0";

        int[] t_judgement    = theTiming.GetJudgementRecord();
        int   t_currentScore = theScore.GetCurrentScore();
        int   t_maxCombo     = theCombo.GetMaxCombo();
        int   t_coin         = t_currentScore / 50;

        for (int i = 0; i < txtCount.Length; i++)
        {
            txtCount[i].text = string.Format("{0:#,##0}", t_judgement[i]);
        }
        txtScore.text    = string.Format("{0:#,##0}", t_currentScore);
        txtMaxCombo.text = string.Format("{0:#,##0}", t_maxCombo);
        txtCoin.text     = string.Format("{0:#,##0}", t_coin);

        if (t_currentScore > theDatabase.score[currentSong])
        {
            theDatabase.score[currentSong] = t_currentScore;
            theDatabase.SaveScore();
        }
    }
示例#2
0
    public void ShowResult()
    {
        AudioManager.instance.StopBGM();

        goUI.SetActive(true);
        for (int i = 0; i < txtCount.Length; i++)
        {
            txtCount[i].text = string.Format("{0:#,##0}", theTiming.GetJudgementRecord(i));
        }

        int t_score = theScore.GetCurrentScore();
        int t_coin  = t_score / 50;
        int t_combo = theCombo.GetMaxCombo();

        txtMaxCombo.text = string.Format("{0:#,##0}", t_combo);
        txtCoin.text     = string.Format("{0:#,##0}", t_coin);
        txtScore.text    = string.Format("{0:#,##0}", t_score);
    }