日历选中问题

This commit is contained in:
2025-06-16 14:33:28 +08:00
parent be5090a495
commit e61043dfaa

View File

@@ -234,14 +234,12 @@ export class DailyChallenge extends Laya.Script {
StorageManager.getInstance().cleanStage(stageID) StorageManager.getInstance().cleanStage(stageID)
} }
} }
}
unit.setCalendarUnit(info.year, info.month, day, open, progress, this, this.onClickUnit)
if (info.year === nowYear && info.month === nowMonth && day === nowDay) { if (info.year === nowYear && info.month === nowMonth && day === nowDay) {
todayUnit = unit todayUnit = unit
} }
if (progress < 1) {
lastUnfinishUnit = unit lastUnfinishUnit = unit
} }
unit.setCalendarUnit(info.year, info.month, day, open, progress, this, this.onClickUnit)
day++ day++
} else { } else {
unit.owner.visible = false unit.owner.visible = false