20 lines
451 B
C#
20 lines
451 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Panel_WeatherInfo : ToolPopupBase
|
|
{
|
|
public Button Button_Close;
|
|
private void Awake()
|
|
{
|
|
var buttonDictionary = transform.FindComponentDictionary<Button>();
|
|
Button_Close = buttonDictionary.GetOrNull(nameof(Button_Close));
|
|
Button_Close.onClick.AddListener(Close);
|
|
}
|
|
|
|
private void Close()
|
|
{
|
|
SetActive(false);
|
|
onClose?.Invoke();
|
|
}
|
|
}
|