dd
This commit is contained in:
@@ -20,11 +20,9 @@ export class HeroCard extends ecs.Entity {
|
||||
|
||||
// 视图层
|
||||
|
||||
|
||||
|
||||
protected init() {
|
||||
// this.addComponents<ecs.Comp>(
|
||||
// MonsterModelComp);
|
||||
|
||||
|
||||
}
|
||||
|
||||
destroy(): void {
|
||||
@@ -34,7 +32,7 @@ export class HeroCard extends ecs.Entity {
|
||||
|
||||
/** 加载角色 */
|
||||
load(pos: Vec3 = Vec3.ZERO,uuid:number=1001,parent:Node) {
|
||||
console.log("load hero",uuid);
|
||||
// console.log("load hero",uuid);
|
||||
// var path = "game/monster/"+prefab_path;
|
||||
var path = "game/heros/cards/hero_card";
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
|
||||
Reference in New Issue
Block a user