41 lines
757 B
C#
Raw Normal View History

2021-03-30 14:23:41 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
//namespace Assets.Scripts.UI.Prefab.Panel
//{
2021-04-01 09:33:19 +08:00
public class PFUIPanel : UIBehaviour
{
public void OpenURL(string url)
2021-03-30 14:23:41 +08:00
{
2021-04-01 09:33:19 +08:00
Application.OpenURL(url);
}
2021-03-30 14:23:41 +08:00
public virtual void Show()
{
base.gameObject.SetActive(true);
}
2021-04-01 09:33:19 +08:00
public virtual void Close()
{
//DestroyImmediate(this.gameObject);
this.gameObject.SetActive(false);
}
public void AddChild(PFUIPanel child)
{
if(child == null)
{
return;
}
child.transform.SetParent(this.transform);
2021-03-30 14:23:41 +08:00
}
2021-04-01 09:33:19 +08:00
}
2021-03-30 14:23:41 +08:00
//}