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");