备份CatanBuilding瘦身独立工程
This commit is contained in:
16
Assets/Scripts/Aquarium/UI/AquariumInfoPopupPanel.cs
Normal file
16
Assets/Scripts/Aquarium/UI/AquariumInfoPopupPanel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using GameCore;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class AquariumInfoPopupPanel : MonoBehaviour
|
||||
{
|
||||
private Button btnClose;
|
||||
private void Awake()
|
||||
{
|
||||
btnClose = transform.Find("btn_close").GetComponent<Button>();
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
btnClose.onClick.AddListener(() => UIManager.Instance.DestroyUI(UITypes.AquariumInfoPopupPanel));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user