Start scene & menu + Pause menu

This commit is contained in:
2023-10-16 11:23:24 +02:00
parent 46664e688f
commit 6bfb6f8642
4156 changed files with 675662 additions and 16 deletions
+12
View File
@@ -10,6 +10,18 @@ public class PlayerManager : MonoBehaviour
public int Exp = 0;
public int Level = 1;
[SerializeField]
private GameObject pauseMenu;
private void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
pauseMenu.SetActive(true);
Time.timeScale = 0f;
}
}
public void AddExperience(int value)
{
Exp += value;