Example #1
0
    //-----------------------------------------------------
    //  得点追加
    //-----------------------------------------------------
    public void AddScore(int point)
    {
        //得点を加算
        score[gameNum] = Mathf.Max(score[gameNum] + point, 0);
        //SE
        if (point > 0)
        {
            SoundManager.instance.StartSound_SE(SE.ScoreUp);
        }
        else if (point < 0)
        {
            SoundManager.instance.StartSound_SE(SE.ScoreDown);
        }
        //表記
        scoreDis.ScoreDraw(point);

        //Object数をカウント
        objNum--;
        if (objNum <= 0)
        {
            StartCoroutine(NextGame());
        }
    }