Skip to content

Instantly share code, notes, and snippets.

/RestartGame.cs

Created Mar 14, 2018
Embed
What would you like to do?
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