备份CatanBuilding瘦身独立工程
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using asap.core;
|
||||
using GameCore;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace game
|
||||
{
|
||||
public class EventScratchTicketInfoPopupPanel : BasePanel
|
||||
{
|
||||
Button btn_close;
|
||||
|
||||
#region UI
|
||||
private async void OnBtnCloseClickListener()
|
||||
{
|
||||
EventScratchTicketDataManager dataManager = GContext.container.Resolve<EventScratchTicketDataManager>();
|
||||
|
||||
await UIManager.Instance.ShowUI(dataManager.GetUIPanel());
|
||||
UIManager.Instance.DestroyUI(dataManager.GetInfoPanel());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 生命周期
|
||||
// Start is called before the first frame update
|
||||
protected override void Start()
|
||||
{
|
||||
btn_close = transform.Find("btn_close").GetComponent<Button>();
|
||||
btn_close.onClick.RemoveAllListeners();
|
||||
btn_close.onClick.AddListener(OnBtnCloseClickListener);
|
||||
|
||||
base.Start();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user