技能移动修改
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user