25 lines
615 B
C#
25 lines
615 B
C#
using UnityEngine;
|
|
|
|
namespace BlueWater.Uis
|
|
{
|
|
public class PopupUi : MonoBehaviour
|
|
{
|
|
public bool IsOpened { get; protected set; }
|
|
|
|
public virtual void Open()
|
|
{
|
|
// 화면의 가장 앞으로 가져오기
|
|
transform.SetAsLastSibling();
|
|
gameObject.SetActive(true);
|
|
PopupUiController.RegisterPopup(this);
|
|
IsOpened = true;
|
|
}
|
|
|
|
public virtual void Close()
|
|
{
|
|
gameObject.SetActive(false);
|
|
PopupUiController.UnregisterPopup(this);
|
|
IsOpened = false;
|
|
}
|
|
}
|
|
} |