I just want to make restart button with touch button via below code, but if
statment does not work. Could you find reason?
function OnGUI() {
if(Input.touchCount>0) {
if (GUI.Button(Rect(Screen.width/1.12, 0, Screen.width/8, Screen.height/8),"restart")) {
Application.LoadLevel(1);
}
}
}