fix(游戏逻辑): 初始化任务怪物组件时重置计时器和队列
refactor(UI): 调整top.prefab中元素的尺寸和对齐方式
This commit is contained in:
@@ -1220,7 +1220,7 @@
|
|||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -49,
|
"x": -50,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
@@ -1261,8 +1261,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 98,
|
"width": 100,
|
||||||
"height": 9
|
"height": 10
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@@ -1386,8 +1386,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 98,
|
"width": 100,
|
||||||
"height": 9
|
"height": 10
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@@ -1461,7 +1461,7 @@
|
|||||||
"__id__": 53
|
"__id__": 53
|
||||||
},
|
},
|
||||||
"_mode": 0,
|
"_mode": 0,
|
||||||
"_totalLength": 97,
|
"_totalLength": 100,
|
||||||
"_progress": 1,
|
"_progress": 1,
|
||||||
"_reverse": false,
|
"_reverse": false,
|
||||||
"_id": ""
|
"_id": ""
|
||||||
@@ -1509,7 +1509,7 @@
|
|||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -49,
|
"x": -50,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
@@ -1550,8 +1550,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 98,
|
"width": 100,
|
||||||
"height": 9
|
"height": 10
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
@@ -1626,10 +1626,10 @@
|
|||||||
},
|
},
|
||||||
"_alignFlags": 45,
|
"_alignFlags": 45,
|
||||||
"_target": null,
|
"_target": null,
|
||||||
"_left": 1,
|
"_left": 0,
|
||||||
"_right": 1,
|
"_right": 0,
|
||||||
"_top": 0.5,
|
"_top": 0,
|
||||||
"_bottom": 0.5,
|
"_bottom": 0,
|
||||||
"_horizontalCenter": 0,
|
"_horizontalCenter": 0,
|
||||||
"_verticalCenter": 0,
|
"_verticalCenter": 0,
|
||||||
"_isAbsLeft": true,
|
"_isAbsLeft": true,
|
||||||
@@ -2385,7 +2385,7 @@
|
|||||||
},
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": -49,
|
"x": -50,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
"z": 0
|
"z": 0
|
||||||
},
|
},
|
||||||
@@ -2426,8 +2426,8 @@
|
|||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 98,
|
"width": 100,
|
||||||
"height": 9
|
"height": 10
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
"__type__": "cc.Vec2",
|
"__type__": "cc.Vec2",
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ export class MissionMonCompComp extends CCComp {
|
|||||||
smc.vmdata.mission_data.mon_num=0
|
smc.vmdata.mission_data.mon_num=0
|
||||||
// 重置生成顺序计数器
|
// 重置生成顺序计数器
|
||||||
this.globalSpawnOrder = 0
|
this.globalSpawnOrder = 0
|
||||||
|
this.gameTime = 0
|
||||||
|
this.spawnLogicTimer = 0
|
||||||
|
this.MonQueue = []
|
||||||
this.do_mon_wave()
|
this.do_mon_wave()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user