how to do car ranking system on finish line

i am making a car game.
i have completed all the things but stuck in ranking system.All i want is when the player hits the finish line collider , then it will display a panel on which all the ranking of four cars are written. thanks.

You could try to create a Canvas that will display the cars. That Canvas would have 4 children texts (Pos1Text,Pos2Text and so), and you will also need a script to check which car arrives. Then in the finish line, when the car A hits the collider, the Pos1Text would change its value to carAname. Then set the Pos1Text.enabled to true. I.e. `void OnCollisionEnter (Collision col) {
if (col.tag == “Car1” && currentcar == 1) {
Pos1Text.enabled = true;
Pos1Text.text = " Car1 ";
Currentcar + +;

} else if ( col.tag = = " Car1 " & & currentcar = = 2 ) / / same that above, but using Pos 2 values. Else the same using Pos 3 values. That should be repeated with the 4 cars `