Hi im new to unity and i want to make a trigger and if the player is in the “triggerbox” i want the player to allow to go to the next scene.
also the player has to press a button to go to that scene.
I hope you can please help me.
Hi im new to unity and i want to make a trigger and if the player is in the “triggerbox” i want the player to allow to go to the next scene.
also the player has to press a button to go to that scene.
I hope you can please help me.
For detecting when the player has touched the trigger, look at OnTriggerEnter(). For loading the next level, look at Application.LoadLevel().
The key press is just a program logic issue. Create a ‘level is complete’ variable somewhere, and set it to true when the player touches the trigger. Then, if the flag is true and the ‘to next level’ key was pressed, load the next level.