地图动画,将英雄位置调整
This commit is contained in:
@@ -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处循环重置
|
||||
|
||||
Reference in New Issue
Block a user