feat(init): 搭建初始的项目框架
This commit is contained in:
18
Assets/Script/Core/UI/UILayerRoot.cs
Normal file
18
Assets/Script/Core/UI/UILayerRoot.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
namespace Core
|
||||
{
|
||||
// 挂在 NormalCanvas 上的脚本
|
||||
public class UILayerRoot : MonoBehaviour
|
||||
{
|
||||
public UILayer layer;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (UIManager.Instance != null)
|
||||
{
|
||||
UIManager.Instance.RegisterLayer(layer, transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user