判空问题
This commit is contained in:
@@ -231,7 +231,7 @@ export class DailyChallenge extends Laya.Script {
|
||||
unit.label_show.visible = false
|
||||
}
|
||||
}
|
||||
if (this.selectedUnit == null)
|
||||
if (!this.selectedUnit)
|
||||
this.selectedUnit = this.units[info.begin+info.dayCount-1]
|
||||
this.onApplyUnit(this.selectedUnit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user