25 lines
514 B
C#
25 lines
514 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Panel_PrivacyPolicy : MonoBehaviour
|
|
{
|
|
public Button Button_Close;
|
|
|
|
public void Initialized()
|
|
{
|
|
var buttonDictionary = transform.FindComponentDictionary<Button>();
|
|
Button_Close = buttonDictionary.GetOrNull(nameof(Button_Close));
|
|
Button_Close.onClick.AddListener(Close);
|
|
}
|
|
|
|
public void Open()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
public void Close()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|