|
@@ -1,3 +1,4 @@
|
|
|
+using System;
|
|
|
using System.Collections.Generic;
|
|
|
using ET;
|
|
|
using FairyGUI;
|
|
@@ -54,7 +55,9 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
- onClickDayIndex = ActivityDay7DataManager.Instance.GetActivityDay7Day() - 1;
|
|
|
+ var min = Math.Min(Activity7DaysTaskCfgArray.Instance.dataArray.Length,
|
|
|
+ ActivityDay7DataManager.Instance.GetActivityDay7Day());
|
|
|
+ onClickDayIndex = Math.Max(0, min - 1);
|
|
|
SetScoreList();
|
|
|
SetScore();
|
|
|
SetDayList();
|