添加2个游戏层,敌方精灵随机出现在3个层内

This commit is contained in:
2024-08-22 22:59:43 +08:00
parent 6e9faca1a3
commit 2917c12f14
65 changed files with 394 additions and 2540 deletions

View File

@@ -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);