技能还有错误
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user