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

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

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