添加弹窗
This commit is contained in:
parent
ba410a03fa
commit
ea41dd4b02
File diff suppressed because it is too large
Load Diff
|
@ -20,7 +20,7 @@
|
|||
"__id__": 4
|
||||
},
|
||||
{
|
||||
"__id__": 370
|
||||
"__id__": 372
|
||||
}
|
||||
],
|
||||
"_active": false,
|
||||
|
@ -160,6 +160,9 @@
|
|||
"anniu_little": {
|
||||
"__uuid__": "a5518b0f-7ed3-46f0-aa78-93f02f4579cc"
|
||||
},
|
||||
"tanchuang": {
|
||||
"__uuid__": "1301aea4-4351-40d8-b4c4-e428613b3681"
|
||||
},
|
||||
"zhuan1": {
|
||||
"__uuid__": "e4d2f16e-7663-4ee5-a479-06ae0eae91d5"
|
||||
},
|
||||
|
@ -201,22 +204,22 @@
|
|||
"__id__": 322
|
||||
},
|
||||
{
|
||||
"__id__": 353
|
||||
"__id__": 355
|
||||
},
|
||||
{
|
||||
"__id__": 358
|
||||
"__id__": 360
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 367
|
||||
},
|
||||
{
|
||||
"__id__": 368
|
||||
},
|
||||
{
|
||||
"__id__": 369
|
||||
},
|
||||
{
|
||||
"__id__": 370
|
||||
},
|
||||
{
|
||||
"__id__": 371
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -14921,24 +14924,12 @@
|
|||
},
|
||||
{
|
||||
"__id__": 328
|
||||
},
|
||||
{
|
||||
"__id__": 331
|
||||
},
|
||||
{
|
||||
"__id__": 334
|
||||
},
|
||||
{
|
||||
"__id__": 337
|
||||
},
|
||||
{
|
||||
"__id__": 347
|
||||
}
|
||||
],
|
||||
"_active": false,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 352
|
||||
"__id__": 354
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15139,20 +15130,96 @@
|
|||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "lqbg",
|
||||
"_name": "mcReward",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 322
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 329
|
||||
},
|
||||
{
|
||||
"__id__": 332
|
||||
},
|
||||
{
|
||||
"__id__": 335
|
||||
},
|
||||
{
|
||||
"__id__": 338
|
||||
},
|
||||
{
|
||||
"__id__": 348
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 353
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "8ayQ7bk0lMH7RIp4T5diRE"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "lqbg",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 328
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 329
|
||||
"__id__": 330
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 330
|
||||
"__id__": 331
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15206,7 +15273,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 328
|
||||
"__id__": 329
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15241,7 +15308,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "42LmNoxGhO67Td+h94X++n",
|
||||
"fileId": "b3+SL+Q69Ecr9cZoRnjGVs",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15249,17 +15316,17 @@
|
|||
"_name": "guang",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 322
|
||||
"__id__": 328
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 332
|
||||
"__id__": 333
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 333
|
||||
"__id__": 334
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15313,7 +15380,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 331
|
||||
"__id__": 332
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15348,7 +15415,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "d3+HUycU5AdbsxCnjjG1Gl",
|
||||
"fileId": "45Q9n7AoNJxJExDAtoxpNm",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15356,17 +15423,17 @@
|
|||
"_name": "coins4",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 322
|
||||
"__id__": 328
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 335
|
||||
"__id__": 336
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 336
|
||||
"__id__": 337
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15399,7 +15466,7 @@
|
|||
1,
|
||||
1.8,
|
||||
1.8,
|
||||
1
|
||||
1.8
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
|
@ -15420,7 +15487,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 334
|
||||
"__id__": 335
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15457,7 +15524,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "d3wiWd90lML4oTnrxJffhK",
|
||||
"fileId": "abX6GpR59L2Ixkg5O291h7",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15465,23 +15532,23 @@
|
|||
"_name": "DaysLeft",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 322
|
||||
"__id__": 328
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 338
|
||||
"__id__": 339
|
||||
},
|
||||
{
|
||||
"__id__": 341
|
||||
"__id__": 342
|
||||
},
|
||||
{
|
||||
"__id__": 343
|
||||
"__id__": 344
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 346
|
||||
"__id__": 347
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15535,17 +15602,17 @@
|
|||
"_name": "haisheng",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 337
|
||||
"__id__": 338
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 339
|
||||
"__id__": 340
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 340
|
||||
"__id__": 341
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15599,7 +15666,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 338
|
||||
"__id__": 339
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15636,7 +15703,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "02OyPjluNLTLKOCDIXmXmB",
|
||||
"fileId": "b6wf3hdCxDWKcva3qKyYzb",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15644,13 +15711,13 @@
|
|||
"_name": "time",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 337
|
||||
"__id__": 338
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 342
|
||||
"__id__": 343
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15707,7 +15774,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "22JDmdIklHyKs5k8rBZ9RX",
|
||||
"fileId": "5dr19/uyZL84CnMwV7pzFw",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15715,17 +15782,17 @@
|
|||
"_name": "lqtian",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 337
|
||||
"__id__": 338
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 344
|
||||
"__id__": 345
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 345
|
||||
"__id__": 346
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15779,7 +15846,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 343
|
||||
"__id__": 344
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15816,7 +15883,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "7eIEnRCypLt66rLHNKf/3I",
|
||||
"fileId": "55GzysuSJCCr+P+t+qVlfg",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15827,7 +15894,7 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "c3jBryxn1Lv5BArWkkUxzp",
|
||||
"fileId": "429sbdN5xG3bAsZmd2LnBM",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -15835,20 +15902,20 @@
|
|||
"_name": "lq",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 322
|
||||
"__id__": 328
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 348
|
||||
"__id__": 349
|
||||
},
|
||||
{
|
||||
"__id__": 349
|
||||
"__id__": 350
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 351
|
||||
"__id__": 352
|
||||
},
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -15881,7 +15948,7 @@
|
|||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
0
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
|
@ -15902,7 +15969,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 347
|
||||
"__id__": 348
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -15936,7 +16003,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 347
|
||||
"__id__": 348
|
||||
},
|
||||
"_enabled": true,
|
||||
"_normalMaterial": null,
|
||||
|
@ -15945,7 +16012,7 @@
|
|||
"zoomScale": 1.1,
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 350
|
||||
"__id__": 351
|
||||
}
|
||||
],
|
||||
"_N$interactable": true,
|
||||
|
@ -16021,7 +16088,18 @@
|
|||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "c61FLmjDpNXb2SOtzqo/Gl",
|
||||
"fileId": "c5EEvddblPV5i3tqcThBfa",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 322
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "1a9f7d54-86c0-4e75-a1ac-ff623f0c9a1f"
|
||||
},
|
||||
"fileId": "cdCj6iBydMHLooCJU2lGg3",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
|
@ -16044,13 +16122,13 @@
|
|||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 354
|
||||
"__id__": 356
|
||||
}
|
||||
],
|
||||
"_active": false,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 357
|
||||
"__id__": 359
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16106,16 +16184,16 @@
|
|||
"_name": "New Sprite(Splash)",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 353
|
||||
"__id__": 355
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 355
|
||||
"__id__": 357
|
||||
},
|
||||
{
|
||||
"__id__": 356
|
||||
"__id__": 358
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16171,7 +16249,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 354
|
||||
"__id__": 356
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16203,7 +16281,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 354
|
||||
"__id__": 356
|
||||
},
|
||||
"_enabled": true,
|
||||
"_id": "59BOMZmhdPJajqBGyoUDBU"
|
||||
|
@ -16213,7 +16291,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 353
|
||||
"__id__": 355
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16259,19 +16337,19 @@
|
|||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 359
|
||||
},
|
||||
{
|
||||
"__id__": 362
|
||||
"__id__": 361
|
||||
},
|
||||
{
|
||||
"__id__": 364
|
||||
},
|
||||
{
|
||||
"__id__": 366
|
||||
}
|
||||
],
|
||||
"_active": false,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 366
|
||||
"__id__": 368
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16327,16 +16405,16 @@
|
|||
"_name": "New Sprite(Splash)",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 358
|
||||
"__id__": 360
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 360
|
||||
"__id__": 362
|
||||
},
|
||||
{
|
||||
"__id__": 361
|
||||
"__id__": 363
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16392,7 +16470,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 359
|
||||
"__id__": 361
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16424,7 +16502,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 359
|
||||
"__id__": 361
|
||||
},
|
||||
"_enabled": true,
|
||||
"_id": "f7VWpZp11LWprv6A8lnYhR"
|
||||
|
@ -16434,13 +16512,13 @@
|
|||
"_name": "load",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 358
|
||||
"__id__": 360
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 363
|
||||
"__id__": 365
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16496,7 +16574,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 362
|
||||
"__id__": 364
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16528,13 +16606,13 @@
|
|||
"_name": "New Label",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 358
|
||||
"__id__": 360
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 365
|
||||
"__id__": 367
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16590,7 +16668,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 364
|
||||
"__id__": 366
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16623,7 +16701,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 358
|
||||
"__id__": 360
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -16737,7 +16815,7 @@
|
|||
"__id__": 322
|
||||
},
|
||||
"cardTime": {
|
||||
"__id__": 341
|
||||
"__id__": 342
|
||||
},
|
||||
"_id": "0dna+7W/NMp6RyIrSQLx5u"
|
||||
},
|
||||
|
@ -16751,14 +16829,14 @@
|
|||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 371
|
||||
},
|
||||
{
|
||||
"__id__": 372
|
||||
},
|
||||
{
|
||||
"__id__": 373
|
||||
},
|
||||
{
|
||||
"__id__": 374
|
||||
},
|
||||
{
|
||||
"__id__": 375
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -16814,7 +16892,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 370
|
||||
"__id__": 372
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -16847,7 +16925,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 370
|
||||
"__id__": 372
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -16874,11 +16952,11 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 370
|
||||
"__id__": 372
|
||||
},
|
||||
"_enabled": true,
|
||||
"uid_Number": {
|
||||
"__id__": 371
|
||||
"__id__": 373
|
||||
},
|
||||
"_id": "67zCbKKV9PvYlB9x+eob0L"
|
||||
}
|
||||
|
|
|
@ -236,6 +236,13 @@ export default class JiaZai extends cc.Component {
|
|||
let timeNode = health.getComponent("heathnum").timeNode;
|
||||
let switchButtons = health.getComponent("heathnum").switchButtons;
|
||||
let coin = health.getComponent("heathnum").coin;
|
||||
let pauseNode = health.getChildByName("heath");
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
// 启动弹窗自己的倒计时
|
||||
if (cc.fx.GameConfig.GM_INFO.hp < cc.fx.GameConfig.GM_INFO.hp_Max) {
|
||||
this.startHeathTimeCutDown(timeNode);
|
||||
|
@ -834,6 +841,7 @@ export default class JiaZai extends cc.Component {
|
|||
// }
|
||||
|
||||
rewarded() {
|
||||
|
||||
Utils.monthGetReward((data) => {
|
||||
if (data.data == null) {
|
||||
console.log("到期");
|
||||
|
@ -858,10 +866,18 @@ export default class JiaZai extends cc.Component {
|
|||
}
|
||||
if (data.code == 1) {
|
||||
this.getcard.active = true;
|
||||
let pauseNode = this.getcard.getChildByName("mcReward");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.monthTime, 40, 20, "month_", this.cardTime, true)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//缓存弹窗
|
||||
monthH() {
|
||||
// return;
|
||||
|
|
|
@ -2051,6 +2051,13 @@ export default class MapConroler extends cc.Component {
|
|||
// return;
|
||||
// }
|
||||
this.node.parent.parent.getChildByName("propWindow").active = true;
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
let pauseNode = this.node.parent.parent.getChildByName("propWindow").getChildByName("prop");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("freeze");
|
||||
}
|
||||
else {
|
||||
|
@ -2207,6 +2214,13 @@ export default class MapConroler extends cc.Component {
|
|||
hammerBtn.getComponent("btnControl").setTouch(false);
|
||||
if (cc.fx.GameConfig.GM_INFO.hammerAmount < 1) {
|
||||
this.node.parent.parent.getChildByName("propWindow").active = true;
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
let pauseNode = this.node.parent.parent.getChildByName("propWindow").getChildByName("prop");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("hammer");
|
||||
}
|
||||
else {
|
||||
|
@ -2319,6 +2333,13 @@ export default class MapConroler extends cc.Component {
|
|||
// return;
|
||||
// }
|
||||
this.node.parent.parent.getChildByName("propWindow").active = true;
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
let pauseNode = this.node.parent.parent.getChildByName("propWindow").getChildByName("prop");
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("magic");
|
||||
// MiniGameSdk.API.showToast("魔法棒数量不足,自动购买魔法棒");
|
||||
}
|
||||
|
|
|
@ -326,8 +326,17 @@ export default class SceneManager extends cc.Component {
|
|||
MapConroler._instance.stopBoom();
|
||||
|
||||
this.btnName = name;
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow");
|
||||
propWindow.active = true;
|
||||
propWindow = propWindow.getChildByName("prop");
|
||||
cc.fx.AudioManager._instance.playEffect("tanchuang", null);
|
||||
let pauseNode = propWindow;
|
||||
pauseNode.scale = 0.3;
|
||||
cc.tween(pauseNode)
|
||||
.to(0.2, { scale: 1.05 }, { easing: 'backOut' })
|
||||
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
|
||||
.start();
|
||||
propWindow.getChildByName("freeze").active = false;
|
||||
propWindow.getChildByName("hammer").active = false;
|
||||
propWindow.getChildByName("magic").active = false;
|
||||
|
@ -343,9 +352,10 @@ export default class SceneManager extends cc.Component {
|
|||
// }
|
||||
}
|
||||
|
||||
|
||||
clickBtn() {
|
||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow");
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow").getChildByName("prop");
|
||||
if (propWindow.getChildByName("buy_Btn").getComponent("btnControl")._touch) {
|
||||
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(false);
|
||||
if (this.btnName == "freeze")
|
||||
|
@ -358,10 +368,11 @@ export default class SceneManager extends cc.Component {
|
|||
}
|
||||
|
||||
resetBtn() {
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow");
|
||||
let propWindow = this.node.getChildByName("Game").getChildByName("propWindow").getChildByName("prop");
|
||||
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
|
||||
}
|
||||
|
||||
|
||||
//打开商店
|
||||
openShop() {
|
||||
if (!SceneManager.cachedShopPrefab) {
|
||||
|
|
|
@ -27,6 +27,8 @@ export default class AudioManager extends cc.Component {
|
|||
@property(cc.AudioClip)
|
||||
anniu_little: cc.AudioClip = null;
|
||||
@property(cc.AudioClip)
|
||||
tanchuang: cc.AudioClip = null;
|
||||
@property(cc.AudioClip)
|
||||
zhuan1: cc.AudioClip = null;
|
||||
@property(cc.AudioClip)
|
||||
zhuan2: cc.AudioClip = null;
|
||||
|
|
BIN
assets/music/tanchuang.mp3
Normal file
BIN
assets/music/tanchuang.mp3
Normal file
Binary file not shown.
8
assets/music/tanchuang.mp3.meta
Normal file
8
assets/music/tanchuang.mp3.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"ver": "2.0.3",
|
||||
"uuid": "1301aea4-4351-40d8-b4c4-e428613b3681",
|
||||
"importer": "audio-clip",
|
||||
"downloadMode": 0,
|
||||
"duration": 0.216,
|
||||
"subMetas": {}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user