fix(游戏逻辑): 初始化任务怪物组件时重置计时器和队列

refactor(UI): 调整top.prefab中元素的尺寸和对齐方式
This commit is contained in:
walkpan
2026-01-19 07:52:51 +08:00
parent 1c333629b4
commit b392ebe272
2 changed files with 19 additions and 16 deletions

View File

@@ -1220,7 +1220,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -49,
"x": -50,
"y": 0,
"z": 0
},
@@ -1261,8 +1261,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 98,
"height": 9
"width": 100,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1386,8 +1386,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 98,
"height": 9
"width": 100,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1461,7 +1461,7 @@
"__id__": 53
},
"_mode": 0,
"_totalLength": 97,
"_totalLength": 100,
"_progress": 1,
"_reverse": false,
"_id": ""
@@ -1509,7 +1509,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -49,
"x": -50,
"y": 0,
"z": 0
},
@@ -1550,8 +1550,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 98,
"height": 9
"width": 100,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1626,10 +1626,10 @@
},
"_alignFlags": 45,
"_target": null,
"_left": 1,
"_right": 1,
"_top": 0.5,
"_bottom": 0.5,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -2385,7 +2385,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -49,
"x": -50,
"y": 0,
"z": 0
},
@@ -2426,8 +2426,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 98,
"height": 9
"width": 100,
"height": 10
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@@ -56,6 +56,9 @@ export class MissionMonCompComp extends CCComp {
smc.vmdata.mission_data.mon_num=0
// 重置生成顺序计数器
this.globalSpawnOrder = 0
this.gameTime = 0
this.spawnLogicTimer = 0
this.MonQueue = []
this.do_mon_wave()
}