备份CatanBuilding瘦身独立工程
This commit is contained in:
33
Assets/Scripts/UI/Potion/EventPotionInfoPopupPanel.cs
Normal file
33
Assets/Scripts/UI/Potion/EventPotionInfoPopupPanel.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user