From b0119b711ce0186d99e11249be52f6faa00fd44f Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 2 Sep 2022 17:04:34 +0800 Subject: [PATCH] Update UIManager.cs --- .../TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs b/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs index ca7fc941..11620eeb 100644 --- a/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs +++ b/Assets/TEngine/Scripts/Runtime/UIModule/Scripts/Mgr/UIManager.cs @@ -34,7 +34,7 @@ namespace TEngine.Runtime.UIModule public UIManager() { - m_uiManagerGo = GameObject.Instantiate(Resources.Load("UIRoot")); + m_uiManagerGo = Object.Instantiate(Resources.Load("UIRoot")); Object.DontDestroyOnLoad(m_uiManagerGo); m_uiManagerTransform = m_uiManagerGo.transform; m_uiCamera = UnityUtil.FindChildComponent(m_uiManagerTransform, "Camera");