- Home /
How do I add a replay buttom in my game?
Hello there! I'm really new to Unity and I'm not the best to scripting. I'm just in progress to make the most simple ball game. But I really need to make a buttom where people can click on, and them the game resets. I hope it's not to much help to ask for, but do one of you have a script to do it then i would really appreciate to get it.
Thanks alot! -Notarmaso
Answer by YoungDeveloper · Oct 02, 2013 at 03:36 PM
To make a button: http://docs.unity3d.com/Documentation/ScriptReference/GUI.Button.html
To restart level: http://docs.unity3d.com/Documentation/ScriptReference/Application.LoadLevel.html
Application.LoadLevel(Application.loadedLevel);
"I am new to unity" is not an excuse, you could easily find everything you need by just google searching.
Well I didn't find anything because i searched for a replay Button ins$$anonymous$$d of restart. Sorry my fault!
Thanks!
Next time use comment ins$$anonymous$$d of new answer, if i answered your question mark the question as answered. It's the way we say thanks here (:
Your answer