- Home /
 
               Question by 
               ex32 · May 09, 2014 at 11:56 AM · 
                androidbuttontouchrestart game  
              
 
              Restart Game button for android mobile Phone help?
Hello i am testing some physics on my android phone, so all i would need is touch button to restart the game. Would you help me with the script, thank you.
               Comment
              
 
               
              If you did some research this question would never have to be answered, however:
I suggest reloading the scene using Application.LoadLevel
Answer by eshonbel · May 09, 2014 at 03:59 PM
 //Script By BenDy Games \/
 
 //Javascript
 
 function Update(){
 if(Input.GetMouseButtonDown(0)){
 Application.LoadLevel("YourLevel");
 }
 
 }
Your answer
 
 
             Follow this Question
Related Questions
GUI Button touch problem 1 Answer
Taking Input from Android phones 1 Answer
Touch Button Android 0 Answers
(Mobile) Touch anywhere on screen EXCEPT button 3 Answers
Onscreen fire button for FPS games. 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                