有bug 需要修复

This commit is contained in:
2025-01-06 11:06:27 +08:00
parent 01ac7703c2
commit 125f0cb55e
25 changed files with 15217 additions and 38 deletions

View File

@@ -42,9 +42,9 @@ export class Monster extends ecs.Entity {
/** 加载角色 */
load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001,is_hero:boolean=true) {
scale=-1
let box_group=BoxSet.MONSTER
console.log("mon load",uuid)
this.addComponents<ecs.Comp>( MonModelComp);
var path = "game/heros/"+HeroInfo[uuid].path;
var prefab: Prefab = oops.res.get(path, Prefab)!;