diff --git a/assets/Game/scripts/game/Roller.ts b/assets/Game/scripts/game/Roller.ts index e69304a..c84eff1 100644 --- a/assets/Game/scripts/game/Roller.ts +++ b/assets/Game/scripts/game/Roller.ts @@ -786,7 +786,7 @@ export class Roller extends BaseRoller { let iconFramType = 0 if (CroSymbols) { for (let key in CroSymbols) { - if (CroSymbols[key].PosFirst / 5 == this._rollerId) { + if (Math.floor(CroSymbols[key].PosFirst / 5) == this._rollerId) { if (CroSymbols[key].PosFirst % 5 == i) { iconFramType = CroSymbols[key].Type } @@ -794,6 +794,7 @@ export class Roller extends BaseRoller { } } + icon.getComponent(Icon).initIcon(iconIndex, iconHeight, iconKey, iconFramType, this._rollerId); let y = topY.y + (((fallDownNum - nowDownNum) - 0.5 * (iconHeight - iconHeight > 1 ? 1 : 0)) * this.iconHeight);