Added restart button for debugging and testing purposes

This commit is contained in:
Gregory Campbell
2020-04-28 19:56:32 -04:00
parent 3ae841d886
commit c3d0b4453d
6 changed files with 105 additions and 1 deletions
+5
View File
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class GMScript : MonoBehaviour
{
@@ -124,6 +125,10 @@ public class GMScript : MonoBehaviour
if (hit.collider != null) {
if(hit.collider.gameObject.tag == "Restart")
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
}
if(hit.collider.gameObject.tag == "Party")
{