Skip to content

Instantly share code, notes, and snippets.

Created March 14, 2018 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/02ba66a9f5ea97f84d84189d930a5a13 to your computer and use it in GitHub Desktop.
Save anonymous/02ba66a9f5ea97f84d84189d930a5a13 to your computer and use it in GitHub Desktop.
Unity script to restart the game
using UnityEngine;
using System.Collections;
public class RestartGame : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void OnClick() {
Application.LoadLevel("Stadium");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment