日历选中问题

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)
}
}
}
unit.setCalendarUnit(info.year, info.month, day, open, progress, this, this.onClickUnit)
if (info.year === nowYear && info.month === nowMonth && day === nowDay) {
todayUnit = unit
}
if (progress < 1) {
if (info.year === nowYear && info.month === nowMonth && day === nowDay) {
todayUnit = unit
}
lastUnfinishUnit = unit
}
unit.setCalendarUnit(info.year, info.month, day, open, progress, this, this.onClickUnit)
day++
} else {
unit.owner.visible = false