- Home /
Question by
GabboUnity · Jun 26, 2014 at 11:23 PM ·
triggerrestartendgame
End game after collision and restart it with a menu
Hi guys! I need to write a script to end the game after a collision trigger and to restart the game with a menu ..is there someone that could help me? Thanks so much.
Comment
Answer by Jeff-Kesselman · Jun 26, 2014 at 11:24 PM
Make a scene which is your start menus.
Call http://docs.unity3d.com/ScriptReference/Application.LoadLevel.html to load it
Wiki
Answer by GabboUnity · Jul 20, 2014 at 02:20 AM
Hi guys! I have to know how to create a "compulsory trigger collision" between my player and a gameobject that is on the plane. I would for example that if the player doesn't collide with this gameobject, the game end. How can I do? I need a javascript file. Thanks a lot!