32 lines
832 B
C#
32 lines
832 B
C#
using asap.core;
|
|
using cfg;
|
|
using game;
|
|
using GameCore;
|
|
using UnityEngine.UI;
|
|
|
|
public class EventWashingInfoPopupPanel : BasePanel
|
|
{
|
|
private EventWashingDataManager m_DataManager;
|
|
Button btn_close;
|
|
|
|
protected override void Start()
|
|
{
|
|
m_DataManager = GContext.container.Resolve<EventWashingDataManager>();
|
|
btn_close = transform.Find("btn_close").GetComponent<Button>();
|
|
btn_close.onClick.AddListener(OnBtnCloseClick);
|
|
}
|
|
|
|
protected override void OnDestroy()
|
|
{
|
|
btn_close.onClick.RemoveAllListeners();
|
|
}
|
|
|
|
private async void OnBtnCloseClick()
|
|
{
|
|
var data = m_DataManager.GetCurrentEventWashing();
|
|
|
|
await UIManager.Instance.ShowUI(UITypes.EventWashingPanel);
|
|
UIManager.Instance.HideUI(m_DataManager.GetCurrentInfoPopupPanel());
|
|
}
|
|
}
|