添加2个游戏层,敌方精灵随机出现在3个层内
This commit is contained in:
@@ -2,7 +2,6 @@ import { v3, Vec3, _decorator ,Prefab,instantiate,JsonAsset} from "cc";
|
||||
import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { CCComp } from "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||
import { smc } from "../../common/SingletonModuleComp";
|
||||
// import { Role } from "../../role/Role";
|
||||
import { BoxSet } from "../../common/config/BoxSet";
|
||||
import { Hero } from "../../monster/Hero";
|
||||
import { Monster } from "../../monster/Monster";
|
||||
@@ -12,7 +11,6 @@ import { Timer } from "../../../../../extensions/oops-plugin-framework/assets/co
|
||||
import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { CardSet } from "../../common/config/CardSet";
|
||||
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('MapViewComp')
|
||||
@@ -42,6 +40,10 @@ export class MapViewComp extends CCComp {
|
||||
start() {
|
||||
this.scene = this.getComponent(MapViewScene);
|
||||
this.load_data()
|
||||
this.load_role()
|
||||
}
|
||||
load_role(){
|
||||
|
||||
}
|
||||
load_data(){
|
||||
// let heros = oops.res.get("config/game/heros")
|
||||
|
||||
@@ -28,6 +28,10 @@ export class MapViewScene extends Component {
|
||||
|
||||
@property(EntityLayer)
|
||||
public entityLayer: EntityLayer | null = null;
|
||||
@property(EntityLayer)
|
||||
public entityLayer1: EntityLayer | null = null;
|
||||
@property(EntityLayer)
|
||||
public entityLayer2: EntityLayer | null = null;
|
||||
|
||||
@property(SkillLayer)
|
||||
public SkillLayer: SkillLayer | null = null;
|
||||
|
||||
@@ -26,7 +26,7 @@ export default class EntityLayer extends Component {
|
||||
}
|
||||
|
||||
protected start(): void {
|
||||
console.log("EntityLayer start")
|
||||
console.log("EntityLayer start",this)
|
||||
}
|
||||
|
||||
public clear() {
|
||||
|
||||
Reference in New Issue
Block a user