added sound script and menu
This commit is contained in:
24
Assets/Scripts/UI/PauseScreenView.cs
Normal file
24
Assets/Scripts/UI/PauseScreenView.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class PauseScreenView : MonoBehaviour
|
||||
{
|
||||
public GameObject pauseScreen;
|
||||
public Button resumeBtn;
|
||||
public Button BackBtn;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
pauseScreen.SetActive(false);
|
||||
}
|
||||
|
||||
public void Show()
|
||||
{
|
||||
pauseScreen.SetActive(true);
|
||||
}
|
||||
|
||||
public void Hide()
|
||||
{
|
||||
pauseScreen.SetActive(false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user