47 lines
989 B
C#
47 lines
989 B
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class SettingContoller : PFUIPanel
|
|
{
|
|
// Start is called before the first frame update
|
|
Transform exit;
|
|
protected override void Awake()
|
|
{
|
|
exit = transform.Find("Main").Find("Exit");
|
|
if (exit != null)
|
|
{
|
|
//exit.GetComponent<Button>().onClick.AddListener(()=>
|
|
//{
|
|
// Close();
|
|
//});
|
|
UIManager.AddEvent(exit.gameObject, EventTriggerType.PointerClick, (e) =>
|
|
{
|
|
Close();
|
|
});
|
|
}
|
|
}
|
|
protected override void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Show()
|
|
{
|
|
var cg = this.GetComponent<CanvasGroup>();
|
|
cg.alpha = 0;
|
|
base.Show();
|
|
|
|
cg.DOFade(1f, 0.3f);
|
|
}
|
|
}
|