英雄修改

This commit is contained in:
2025-03-19 10:52:57 +08:00
parent 8b04e5c80b
commit 492c073349
3 changed files with 335 additions and 346 deletions

View File

@@ -37,7 +37,7 @@ export class BuffComp extends Component {
// this.node.getChildByName("top").getChildByName("buff").getChildByName("def").active = false;
// this.node.getChildByName("top").getChildByName("buff").getChildByName("hp").active = false;
let hp_node = this.node.getChildByName("top").getChildByName("hp");
hp_node.setPosition(hp_node.position.x,hp_node.position.y-140)
// hp_node.setPosition(hp_node.position.x,hp_node.position.y-140)
}
update(deltaTime: number) {