24 lines
575 B
C#
24 lines
575 B
C#
using GameCore;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class EventRankInfoPopupPanel : MonoBehaviour
|
|
{
|
|
Button btn_close;
|
|
Button btn_mask;
|
|
private void Awake()
|
|
{
|
|
btn_close = transform.Find("btn_close").GetComponent<Button>();
|
|
btn_mask = transform.Find("mask").GetComponent<Button>();
|
|
}
|
|
private void Start()
|
|
{
|
|
btn_close.onClick.AddListener(OnClose);
|
|
btn_mask.onClick.AddListener(OnClose);
|
|
}
|
|
private void OnClose()
|
|
{
|
|
UIManager.Instance.DestroyUI(UITypes.EventRankInfoPopupPanel);
|
|
}
|
|
}
|