Exemple #1
0
    IEnumerator PerformanceRoutine()
    {
        //トータルスコア瞬時表示
        currentTotalScore += G20_ScoreManager.GetInstance().GetBaseScore();
        totalScore.text    = currentTotalScore.ToString();
        var baseScoreStr = G20_ScoreManager.GetInstance().GetBaseScore().ToString();

        baseScore.text = baseScoreStr;
        yield return(new WaitForSeconds(1.0f));

        //チェイン数、チェインボーナス、トータルスコア、カウントアップ
        var preScore = currentTotalScore;

        currentTotalScore += G20_ScoreManager.GetInstance().GetMaxChainBonus();
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(chainValue, 0, G20_ChainCounter.GetInstance().MaxChainCount, chainCountUpDuration);
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(chainScore, 0, G20_ScoreManager.GetInstance().GetMaxChainBonus(), chainCountUpDuration);
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(totalScore, preScore, currentTotalScore, chainCountUpDuration);
        yield return(new WaitForSeconds(chainCountUpDuration + 1.0f));

        //命中率、命中率ボーナス、トータルスコア、カウントアップ
        preScore           = currentTotalScore;
        currentTotalScore += G20_ScoreManager.GetInstance().GetHitRateBonus();
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(hitRateValue, 0, (int)(G20_BulletShooter.GetInstance().HitRate * 100), hitRateCountUpDuration);
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(hitRateScore, 0, G20_ScoreManager.GetInstance().GetHitRateBonus(), hitRateCountUpDuration);
        G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(totalScore, preScore, currentTotalScore, hitRateCountUpDuration);
        yield return(new WaitForSeconds(hitRateCountUpDuration));

        //RANK表示ドーン
        ShowRank();
        showRankAnim.CrossFade("ShowRank", 0f);
    }
 private void Start()
 {
     G20_ScoreCountUpPerformer.GetInstance().StartCountUpScore(scoreText, 0, () => G20_ScoreManager.GetInstance().GetBaseScore(), scoreChangeInterval);
 }