CapersProject/Assets/02.Scripts/Ui/Popup/PopupUi.cs

32 lines
635 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00:00
using UnityEngine;
namespace BlueWater.Uis
{
public class PopupUi : MonoBehaviour
{
2024-10-29 06:45:18 +00:00
public bool IsOpened { get; protected set; }
2024-12-18 16:00:39 +00:00
public bool IsPaused { get; protected set; }
2024-06-03 18:26:03 +00:00
2024-10-29 06:45:18 +00:00
public virtual void Open()
2024-06-03 18:26:03 +00:00
{
2024-10-29 06:45:18 +00:00
PopupUiController.RegisterPopup(this);
IsOpened = true;
2024-06-03 18:26:03 +00:00
}
public virtual void Close()
{
2024-10-29 06:45:18 +00:00
PopupUiController.UnregisterPopup(this);
IsOpened = false;
2024-06-03 18:26:03 +00:00
}
2024-11-17 04:29:57 +00:00
public virtual void EnableInput()
{
}
public virtual void DisableInput()
{
}
2024-06-03 18:26:03 +00:00
}
}