位置已取消

This commit is contained in:
2025-05-15 16:51:52 +08:00
parent ea64303410
commit 30d5cfbb7c
3 changed files with 13 additions and 14 deletions

View File

@@ -29,7 +29,7 @@ export class Hero extends ecs.Entity {
}
/** 加载角色 */
load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001,info:any={ap:0,hp:0}) {
load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001,info:any={ap:0,hp:0},fight_pos:number=0) {
console.log("英雄加载:",uuid,pos,scale,info)
scale = 1
let box_group=BoxSet.HERO
@@ -44,6 +44,7 @@ export class Hero extends ecs.Entity {
let hero= HeroInfo[uuid] // 共用英雄数据
hv.scale = scale;
hv.fac = 0;
hv.fight_pos=fight_pos
hv.type = hero.type;
hv.box_group = box_group;
hv.hero_uuid= uuid;