After I die I want to have a touch Restart-button on Android.
I tried it in javascript, but it doesn’t work:
function OnMouseDown ()
{
Application.LoadLevel(Application.loadedLevel);
}
I read, that there should be a function update, but I don’t now how ![]()
But what is your restart button? I would guess you have this on a GameObject, GUIElement or a GameObject with a collider.
– fafase