Commit f02f9c59 authored by mmaluschnig's avatar mmaluschnig
Browse files

beard menu now accessable from pause

parent d028e621
...@@ -36,6 +36,7 @@ public class GameManager : MonoBehaviour { ...@@ -36,6 +36,7 @@ public class GameManager : MonoBehaviour {
public static bool HasTalkedToAhava; public static bool HasTalkedToAhava;
public static bool HasCompleatedIntro; public static bool HasCompleatedIntro;
public static bool hasCompletedTheGame;
public static void addToLevel(string name, float points) { public static void addToLevel(string name, float points) {
if(name == "Simon") { if(name == "Simon") {
......
...@@ -67,7 +67,12 @@ public class PauseMenu : MonoBehaviour { ...@@ -67,7 +67,12 @@ public class PauseMenu : MonoBehaviour {
} }
public void ExitToMainMenu() { public void ExitToMainMenu() {
Time.timeScale = 1; Time.timeScale = 1;
SceneManager.LoadScene("MainMenu"); if (GameManager.hasCompletedTheGame)
{
SceneManager.LoadScene("BeardMenu");
}else{
SceneManager.LoadScene("MainMenu");
}
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment