继续
This commit is contained in:
@@ -186,6 +186,11 @@ export class MapMonsterComp extends CCComp {
|
||||
smc.hero_pos[1].x=-320
|
||||
smc.hero_pos[2].x=-320
|
||||
for(let i=0;i<heros.length;i++){
|
||||
if(heros[i].RoleView != undefined){
|
||||
smc.hero_pos[5].x = heros[i].RoleView.node.position.x
|
||||
smc.hero_pos[5].y = heros[i].RoleView.node.position.y
|
||||
continue
|
||||
}
|
||||
if(heros[i].HeroView == undefined) return
|
||||
let ho:any = heros[i].HeroView.node.position
|
||||
if(ho.x > smc.hero_pos[0].x&&ho.y == smc.hero_pos[0].y){
|
||||
@@ -201,11 +206,11 @@ export class MapMonsterComp extends CCComp {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
// console.log("count_hero_pos",smc.hero_pos);
|
||||
}
|
||||
load_role(){
|
||||
let role = ecs.getEntity<Role>(Role);
|
||||
let pos = v3(BoxSet.HERO_START+50,BoxSet.GAME_LINE)
|
||||
let pos = v3(BoxSet.HERO_START+50,BoxSet.GAME_LINE-5)
|
||||
role.load(pos,109)
|
||||
smc.Role=role
|
||||
// console.log("加载玩家",role)
|
||||
|
||||
Reference in New Issue
Block a user