Files
2025TapTapGameJam/Assets/Script/Core/UI/UILayerRoot.cs

19 lines
348 B
C#
Raw Normal View History

using UnityEngine;
namespace Core
{
// 挂在 NormalCanvas 上的脚本
public class UILayerRoot : MonoBehaviour
{
public UILayer layer;
void Awake()
{
if (UIManager.Instance != null)
{
UIManager.Instance.RegisterLayer(layer, transform);
}
}
}
}