技能移动修改

This commit is contained in:
walkpan
2024-08-21 14:10:17 +08:00
parent 3f18763730
commit 76a7854e94
15 changed files with 161 additions and 104 deletions

View File

@@ -75,8 +75,8 @@ export class MapMonsterComp extends CCComp {
let monster = ecs.getEntity<Monster>(Monster);
let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE)
let camp = -1
monster.load(pos,camp,uuid);
let scale = -1
monster.load(pos,scale,uuid);
smc.monsters.splice(0,1)
}

View File

@@ -24,9 +24,9 @@ export class MapSkillComp extends CCComp {
}
addSkill(uuid:number=1001){
let csk =ecs.getEntity<CSkill>(CSkill);
let camp = 1
let pos = v3(BoxSet.CSKILL_X*-camp,BoxSet.CSKILL_Y)
csk.load(pos,camp,uuid);
let scale = 1
let pos = v3(BoxSet.CSKILL_X*-scale,BoxSet.CSKILL_Y)
csk.load(pos,scale,uuid);
}
doMonsterLoad(){
// const light = instantiate(this.light);

View File

@@ -78,8 +78,8 @@ export class MapViewComp extends CCComp {
this.scene.node.active = true
let hero = ecs.getEntity<Hero>(Hero);
let pos = v3(BoxSet.HERO_START,BoxSet.GAME_LINE)
let camp = 1
hero.load(pos,camp,uuid);
let scale = 1
hero.load(pos,scale,uuid);
}