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(); } }