//Called by fruit to increase score public void AddPoint(int player) { scores [player - 1]++; //Also update bar scoreBarUI.UpdateBars(scores); }
void UpdateScore() { //Update score CountColorBlocks(); //Then update UI score bars scoreBarUI.UpdateBars(points); }