添加2个游戏层,敌方精灵随机出现在3个层内
This commit is contained in:
@@ -27,7 +27,7 @@ export class CSkill extends ecs.Entity {
|
||||
/** 加载角色 */
|
||||
load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001) {
|
||||
// var path = "game/monster/"+prefab_path;
|
||||
console.log("load skill",this)
|
||||
// console.log("load skill",this)
|
||||
var path = "game/heros/skill";
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
var node = instantiate(prefab);
|
||||
|
||||
Reference in New Issue
Block a user