地图动画,将英雄位置调整

This commit is contained in:
panw
2025-11-04 11:04:27 +08:00
parent 5c9f299fd7
commit fc637529e2
10 changed files with 113 additions and 161 deletions

View File

@@ -192,7 +192,7 @@ export class MissionMonCompComp extends CCComp {
let pos: Vec3 = v3(MonSet[i].pos);
// 根据位置判断线路y=110为一线(lane=0)y=80为二线(lane=1)
const lane = pos.y === 110 ? 0 : 1;
const lane = pos.y === 130 ? 0 : 1;
// 递增全局生成顺序 - 🔥 添加溢出保护
this.globalSpawnOrder = (this.globalSpawnOrder + 1) % 999; // 防止无限增长在999处循环重置