Меню игрока и появление его при смерти

This commit is contained in:
2025-01-25 14:45:55 +03:00
parent c2bcb1ecd8
commit b2ecc77b2a
12 changed files with 4904 additions and 743 deletions

18
Assets/MenuScript.cs Normal file
View File

@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MenuScript : MonoBehaviour
{
// Start is called before the first frame update
public void RestartGame()
{
SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().name);
}
public void ExitGame()
{
Application.Quit();
}
}