コード例 #1
0
    //Called by fruit to increase score
    public void AddPoint(int player)
    {
        scores [player - 1]++;

        //Also update bar
        scoreBarUI.UpdateBars(scores);
    }
コード例 #2
0
    void UpdateScore()
    {
        //Update score
        CountColorBlocks();

        //Then update UI score bars
        scoreBarUI.UpdateBars(points);
    }