30 lines
694 B
C#
30 lines
694 B
C#
using Cysharp.Threading.Tasks;
|
|
using UnityEngine.UI;
|
|
|
|
namespace EnglewoodLAB.UI
|
|
{
|
|
public class SettingPanel : UIPanel, IPanelControl
|
|
{
|
|
public Button Button_Close;
|
|
|
|
public override async UniTask Init()
|
|
{
|
|
Button_Close = GetElement<Button>(nameof(Button_Close));
|
|
Button_Close.onClick.AddListener(Close);
|
|
|
|
await UniTask.CompletedTask;
|
|
}
|
|
|
|
public virtual void Reset() { }
|
|
public virtual void Accept() { }
|
|
public virtual void Open()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
public virtual void Close()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|
|
}
|