技能还有错误

This commit is contained in:
2024-08-21 17:55:15 +08:00
parent 76a7854e94
commit ee7f1c322b
7 changed files with 78 additions and 55 deletions

View File

@@ -34,7 +34,7 @@ export class CSkill extends ecs.Entity {
var scene = smc.map.MapView.scene;
node.parent = scene.entityLayer!.node!;
node.getChildByName("skill").setScale(node.getChildByName("skill").scale.x*scale, node.getChildByName("skill").scale.y, node.getChildByName("skill").scale.z);
let cskills = ecs.query(ecs.allOf(CSkillComp))
// let cskills = ecs.query(ecs.allOf(CSkillComp))
for (let index = 1; index <= 8; index++) {
if(smc.player_buffs[index].eid == 0){
pos.x=smc.player_buffs[index].x
@@ -44,7 +44,7 @@ export class CSkill extends ecs.Entity {
}
}
console.log("load skill",pos,smc.player_buffs)
// console.log("load skill",pos,smc.player_buffs)
node.setPosition(pos.x*scale,pos.y,pos.z)
// console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite))
const url = 'game/heros/skill';