Merge pull request #119 from 6ag/main

给UIModule中UI摄像机赋值
This commit is contained in:
ALEX
2025-03-12 16:50:05 +08:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ namespace GameLogic
private bool _enableErrorLog = true;
private readonly Camera _uiCamera = null;
private Camera _uiCamera = null;
private readonly List<UIWindow> _uiStack = new List<UIWindow>(100);
@@ -43,6 +43,7 @@ namespace GameLogic
if (uiRoot != null)
{
_instanceRoot = uiRoot.GetComponentInChildren<Canvas>()?.transform;
_uiCamera = uiRoot.GetComponentInChildren<Camera>();
}
else
{