Skip to content
Snippets Groups Projects
Commit 0023ebcb authored by sdoan2's avatar sdoan2
Browse files

GameOver restart script

parent b40f9db6
No related branches found
No related tags found
No related merge requests found
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameOverUI : MonoBehaviour {
/*
* Function to be called by on-click button event to restart the game at level 1
*/
public void Retry()
{
SceneManager.LoadScene("2DPlatformerMain");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment