避免没有参数时 相机移动
This commit is contained in:
parent
10f1b0b052
commit
6c5aa4b7be
@ -66,11 +66,11 @@ namespace QFramework.Example
|
||||
|
||||
if (string.IsNullOrEmpty(mData.isOn))
|
||||
{
|
||||
if (Near.isOn)
|
||||
if (Near.isOn && Near.gameObject.activeSelf)
|
||||
{
|
||||
SetNear();
|
||||
}
|
||||
if (Far.isOn)
|
||||
if (Far.isOn && Far.gameObject.activeSelf)
|
||||
{
|
||||
SetNormal();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user