角色动画 确定
This commit is contained in:
@@ -32,6 +32,7 @@ export class Monster extends ecs.Entity {
|
||||
}
|
||||
|
||||
destroy(): void {
|
||||
|
||||
this.remove(MonsterViewComp);
|
||||
super.destroy();
|
||||
}
|
||||
@@ -66,16 +67,12 @@ export class Monster extends ecs.Entity {
|
||||
mv.atk_cd = smc.heros[uuid].atk_cd;
|
||||
mv.power = smc.heros[uuid].power;
|
||||
mv.type = smc.heros[uuid].type;
|
||||
mv.skill_uuid = 9002;
|
||||
mv.skill_uuid = 9001;
|
||||
mv.max_skill_uuid = smc.heros[uuid].max_skill_uuid;
|
||||
mv.scale = -1;
|
||||
mv.Tpos = v3(0,0,0);
|
||||
mv.change_name(smc.heros[uuid].name,-1)
|
||||
this.add(mv);
|
||||
this.push_monsters_in(uuid,mv.ent.eid)
|
||||
|
||||
}
|
||||
push_monsters_in(uuid:number=1001,eid:number=0){
|
||||
smc.monsters_in.push({name:smc.heros[uuid].name,eid:eid})
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user