Created
March 14, 2018 16:25
-
-
Save anonymous/02ba66a9f5ea97f84d84189d930a5a13 to your computer and use it in GitHub Desktop.
Unity script to restart the game
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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