This commit is contained in:
2025-05-27 16:45:22 +08:00
parent cdb09a5ca1
commit ba05b59f4d
7 changed files with 2746 additions and 2057 deletions

View File

@@ -18,9 +18,9 @@ export class MissionMonCompComp extends CCComp {
timer:Timer=new Timer(10)
// 添加刷怪队列
private monsterQueue: Array<{uuid: number, position: number, isBoss: boolean}> = [];
private isSpawning: boolean = false;
private isSpawning: boolean = false;// 是否正在生成怪物
private spawnInterval: number = 0.5; // 每个怪物生成间隔时间
private spawnTimer: number = 0;
private spawnTimer: number = 0; // 生成计时器
/** 视图层逻辑代码分离演示 */
start() {