This commit is contained in:
GodGodGod20081
2026-06-19 12:21:26 +02:00
6 changed files with 29 additions and 740 deletions
+23 -2
View File
@@ -2,15 +2,36 @@
using UnityEngine;
public class PausenManager : MonoBehaviour
{
private bool isOn = false;
[SerializeField] GameObject Can;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
Can.SetActive(false);
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
isOn = true;
show();
}
}
public void show()
{
if(isOn = true)
{
Can.SetActive(true);
}
else
{
Can.SetActive(false);
}
}
public void weiter()
{
isOn = false;
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
//Oliver&Morten
//Oliver
using UnityEngine;
using UnityEngine.UI;
+4
View File
@@ -14,6 +14,10 @@ public class UIHandler : MonoBehaviour
{
SceneManager.LoadScene(sceneName);
}
public void show()
{
gameObject.SetActive(false);
}
public void Quit()
{