This commit is contained in:
shenjianxing 2025-01-22 11:01:24 +08:00
commit 7e986d69b9

View File

@ -65,7 +65,10 @@ namespace QFramework
if (obj.activeSelf == false) if (obj.activeSelf == false)
{ {
Debug.LogError(obj.name + "当前是隐藏状态"); Debug.LogError(obj.name + "当前是隐藏状态");
this.Finish();
} }
else
{
try try
{ {
anim = obj.GetComponent<Animation>(); anim = obj.GetComponent<Animation>();
@ -115,6 +118,8 @@ namespace QFramework
anim = obj.GetComponent<Animation>(); anim = obj.GetComponent<Animation>();
Debug.LogError($"{path} 播放动画 {animName} 出错"); Debug.LogError($"{path} 播放动画 {animName} 出错");
} }
}
} }
else else