Files
back_cantanBuilding/Assets/Scripts/UI/Potion/EventPotionInfoPopupPanel.cs
2026-05-26 16:15:54 +08:00

34 lines
883 B
C#

using asap.core;
using GameCore;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace game
{
public class EventPotionInfoPopupPanel : BasePanel
{
Button btn_close;
#region UI
private async void OnBtnCloseClickListener()
{
EventPotionDataManager dataManager = GContext.container.Resolve<EventPotionDataManager>();
await UIManager.Instance.ShowUI(dataManager.GetUIPanel());
UIManager.Instance.DestroyUI(dataManager.GetInfoPanel());
}
#endregion
#region
protected override void Start()
{
btn_close = transform.Find("btn_close").GetComponent<Button>();
btn_close.onClick.AddListener(OnBtnCloseClickListener);
base.Start();
}
#endregion
}
}