处理空广告页情况
This commit is contained in:
1 parent
570bd1554f
commit
bb8a0712b7
2 files changed
+14
-9
No files matched your search
@@ -269,6 +269,11 @@ public class RaceHomeScript : RaceScript
|
||||
}
|
||||
private void handleDotList(float totalScrollValue)
|
||||
{
|
||||
if (content.childCount <= 0)
|
||||
{
|
||||
scrollIndex = 0;
|
||||
return;
|
||||
}
|
||||
scrollIndex = ((scrollIndex + content.childCount) + (totalScrollValue < 0 ? -1 : 1)) % content.childCount;
|
||||
var dotList = scroll.transform.Find("DotList");
|
||||
for (int i = 0; i < dotList.childCount; i++)
|
||||
|
||||
Reference in new issue
Block a user