diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs index 4d74dbb8..0606e0ee 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Module/UIModule/UIModule.cs @@ -14,7 +14,7 @@ namespace GameLogic private bool _enableErrorLog = true; - private readonly Camera _uiCamera = null; + private Camera _uiCamera = null; private readonly List _uiStack = new List(100); @@ -43,6 +43,7 @@ namespace GameLogic if (uiRoot != null) { _instanceRoot = uiRoot.GetComponentInChildren()?.transform; + _uiCamera = uiRoot.GetComponentInChildren(); } else {