清理之前文件 + 再次取消碰撞检测
This commit is contained in:
@@ -7,6 +7,7 @@ import { HeroSet } from "../common/config/heroSet";
|
||||
import { Missions } from "../common/config/MissionSet";
|
||||
import { RandomManager } from "db://oops-framework/core/common/random/RandomManager";
|
||||
import { Timer } from "db://oops-framework/core/common/timer/Timer";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -19,12 +20,14 @@ export class MissionMonCompComp extends CCComp {
|
||||
start() {
|
||||
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
|
||||
// this.on(ModuleEvent.Cmd, this.onHandler, this);
|
||||
this.test_call()
|
||||
// this.test_call()
|
||||
}
|
||||
protected update(dt: number): void {
|
||||
// if(this.timer.update(dt)){
|
||||
// this.mon_refresh()
|
||||
// }
|
||||
if(!smc.mission.play||smc.mission.pause) return
|
||||
if(this.timer.update(dt)){
|
||||
this.mon_refresh()
|
||||
}
|
||||
|
||||
}
|
||||
test_call(){
|
||||
this.addMonster(5202,0,true)
|
||||
|
||||
Reference in New Issue
Block a user