|
|
|
|
@ -468,6 +468,7 @@ export class TextGrid extends Component { |
|
|
|
|
if (!this.node?.isValid) return; |
|
|
|
|
if (this._stunFx?.isValid) { |
|
|
|
|
this._stunFx.active = true; |
|
|
|
|
this._stunFx.setPosition(0, -40, 0); |
|
|
|
|
this._stunFx.setSiblingIndex(this.node.children.length - 1); |
|
|
|
|
this._ensureDragSurface(); |
|
|
|
|
return; |
|
|
|
|
@ -484,7 +485,8 @@ export class TextGrid extends Component { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
node.parent = this.node; |
|
|
|
|
node.setPosition(0, BattleMapSpec.CELL_SIZE * 0.25, 0); |
|
|
|
|
// 眩晕 Spine 自身已偏上,相对格子中心再下移 40
|
|
|
|
|
node.setPosition(0, -40, 0); |
|
|
|
|
node.active = true; |
|
|
|
|
node.layer = this.node.layer; |
|
|
|
|
node.setSiblingIndex(this.node.children.length - 1); |
|
|
|
|
|