Skip to content
Permalink
Browse files

Restart Button

Added a restart button, not sure it works unless you hit escape. Will see in the next build
  • Loading branch information
aps16104 committed Feb 23, 2020
1 parent 81f77a8 commit 8ed6219855f7f4dde61d3165c9f3d19f15cd2dae
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;



public class PauseMenu : MonoBehaviour
{
@@ -39,4 +43,15 @@ void Pause ()
GameIsPaused = true;
}

Text health;
public void RestartGame()
{
SceneManager.LoadScene("Main");
HealthScript.healthValue = 100;
ScoreScript.scoreValue = 0;
pauseMenuUI.SetActive(false);
GameIsPaused = false;

}

}

0 comments on commit 8ed6219

Please sign in to comment.
You can’t perform that action at this time.