避免没有参数时 相机移动

This commit is contained in:
shenjianxing 2025-01-21 10:08:13 +08:00
parent 10f1b0b052
commit 6c5aa4b7be

View File

@ -66,11 +66,11 @@ namespace QFramework.Example
if (string.IsNullOrEmpty(mData.isOn)) if (string.IsNullOrEmpty(mData.isOn))
{ {
if (Near.isOn) if (Near.isOn && Near.gameObject.activeSelf)
{ {
SetNear(); SetNear();
} }
if (Far.isOn) if (Far.isOn && Far.gameObject.activeSelf)
{ {
SetNormal(); SetNormal();
} }