Posted April 19, 2025 by ricercarg
A "RaceManager" script attached to the track, in order to rank all the marble racers, and show the leader board. In this game, we have 4 marbles, each has a unique name and texture.
The marble ranking is done using the checkpoints along the race track.
During the game, a leader board is shown on the RHS of the screen.
On the LHS, we can select the marble in focus. We can choose which marble to follow, and show their status like current state, velocity, health, turbo, etc. The camera following is down with cinemachine, and a script for switching the cinemachine target object.