技能修改

This commit is contained in:
pan@work
2024-08-23 17:18:04 +08:00
parent 85d7c7e063
commit 68d7077e56
13 changed files with 693 additions and 245 deletions

View File

@@ -34,10 +34,9 @@ export class Role extends ecs.Entity {
}
/** 加载角色 */
load(uuid:number=101) {
load(pos: Vec3 = Vec3.ZERO,uuid:number=101) {
// var path = "game/monster/"+prefab_path;
var path = "game/heros/role";
let pos: Vec3 = Vec3.ZERO
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
var scene = smc.map.MapView.scene;