判断loop情况

This commit is contained in:
shenjianxing 2025-01-09 15:52:57 +08:00
parent 5017235f09
commit cff16c54cf

View File

@ -83,6 +83,10 @@ namespace QFramework
} }
anim[animName].speed = curSpeed; anim[animName].speed = curSpeed;
anim.Play(animName); anim.Play(animName);
if (anim[animName].wrapMode== WrapMode.Loop)
{
this.Finish();
}
} }
} }
catch (Exception) catch (Exception)