清理之前文件 + 再次取消碰撞检测

This commit is contained in:
panfudan
2025-03-27 12:15:02 +08:00
parent 63e182e214
commit 3a15541170
33 changed files with 220 additions and 1130 deletions

View File

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