Update UIManager.cs

This commit is contained in:
ALEXTANG
2022-09-02 17:04:34 +08:00
parent fee3e475f0
commit b0119b711c

View File

@@ -34,7 +34,7 @@ namespace TEngine.Runtime.UIModule
public UIManager()
{
m_uiManagerGo = GameObject.Instantiate(Resources.Load<GameObject>("UIRoot"));
m_uiManagerGo = Object.Instantiate(Resources.Load<GameObject>("UIRoot"));
Object.DontDestroyOnLoad(m_uiManagerGo);
m_uiManagerTransform = m_uiManagerGo.transform;
m_uiCamera = UnityUtil.FindChildComponent<Camera>(m_uiManagerTransform, "Camera");