Merge branch 'NewMaster' into LouDi_Pig

This commit is contained in:
李浩 2025-04-03 17:32:02 +08:00
commit 7cd4311e7a

View File

@ -85,8 +85,15 @@ namespace QFramework.Example
imgTwen = DOTween.To(() => index, v => imgTwen = DOTween.To(() => index, v =>
{ {
index = v; index = v;
if (index>=0&&index < sprites.Count)
{
Img.sprite = sprites[index]; Img.sprite = sprites[index];
Img.SetNativeSize(); Img.SetNativeSize();
}
else
{
Debug.Log("UITimeTipChao suo Yin");
}
}, endIndex, mData.time); }, endIndex, mData.time);