I need some help on the game, and I can’t find any useful script on YouTube or in any Website, I searched as much as I can to get help, my game is a racer game, and there are blocks you should jump on, if a player fall to the ground, I want him to respawn when touching the gameObject which it is the void, is there any script that respawn the player when he get in touch with a gameObject? Please reply, thank you
@BruteAsura This video pretty much tells you how to do exactly that GAME OVER - How to make a Video Game in Unity (E08) - YouTube
You can use OnTriggerEnter() to handle collisions. Assuming you follow how they setup GameManager in the video, you can do something like this.
void OnTriggerEnter(Collider other)
if (other.name == "Void") //Make sure Void game object has the tag "Void" in the inspector