Added basic features
This commit is contained in:
32
Assets/Scripts/Manager/UIManager.cs
Normal file
32
Assets/Scripts/Manager/UIManager.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class UIManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private GameObject _menuPanelUI;
|
||||
[SerializeField]
|
||||
private GameObject _successPanel;
|
||||
[SerializeField]
|
||||
private GameObject _gameOverPanel;
|
||||
|
||||
private void InitUI()
|
||||
{
|
||||
_successPanel.SetActive(false);
|
||||
_gameOverPanel.SetActive(false);
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
InitUI();
|
||||
}
|
||||
|
||||
public void ShowSuccessPanel()
|
||||
{
|
||||
_successPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void ShowGameOverPanel()
|
||||
{
|
||||
_gameOverPanel.SetActive(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user