I've been trying to complete this for multiple hours... this may be a typical question that is asked here.
I made two tracks in the scene, and I want the checkpoints to work for the other tracks, the most obvious answer is to copy the checkpoint (i.e. gameobjects) --- startfinishLine, Checkpoint0, Checkpoint, Checkpoint1, and Checkpoint2. I added the corresponding scripts (checkpoint.cs) to the checkpoints, and move them over the new track. Unfortunately this does not work unless I move the original checkpoints that were created already to the new track.
Do you guys have any suggestions? I want to create multiple levels (e.g. 4 or 5 tracks) and get the data from them, that means that the time will be restarted in every track.
More about this project: I want to move across the levels (tracks) using a reinforcement learning algorithm, which I already programmed.
Thank you guys !!!