You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
526 B
27 lines
526 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace XWFramework.UI {
|
|
public abstract class UIPanel : MonoBehaviour
|
|
{
|
|
public UIType type { get; protected set; }
|
|
|
|
|
|
protected virtual void Awake()
|
|
{
|
|
UIManager.Instance.Register(this);
|
|
}
|
|
protected virtual void OnEnable()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
protected virtual void OnDisable()
|
|
{
|
|
}
|
|
protected abstract void Init();
|
|
}
|
|
}
|
|
|