I am making a maze game.
I want when the player gets to the middle of the maze, to run script. How should I do this?
I basically want to stop the time and go to another scene, but this I will figure out later.
Put a game object where you want this to happen (can be empty game object). Attach a collider (e.g. cube or sphere) to the game object and set the collider to IsTrigger. You can then use the following function:
answered Feb 14 '10 at 09:17 AM
In attempting to do this I got some errors so this is how I got around it.
I had to add the scenes to the build settings (under the file tab) and attached this script to the trigger (game object).
answered May 29 '12 at 11:50 PM