mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update UIManager.cs
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user