//Called by fruit to increase score
    public void AddPoint(int player)
    {
        scores [player - 1]++;

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

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