技能修改
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user