修复UI不消失的bug
This commit is contained in:
parent
08f6967928
commit
34feae945c
@ -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.LogError("图片数组越界");
|
||||||
|
}
|
||||||
|
|
||||||
}, endIndex, mData.time);
|
}, endIndex, mData.time);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user