Commit 10f84750 authored by 李维's avatar 李维

添加返回按钮

parent d26df915
......@@ -17,22 +17,22 @@
"__id__": 2
},
{
"__id__": 50
"__id__": 56
},
{
"__id__": 63
"__id__": 69
},
{
"__id__": 73
"__id__": 79
},
{
"__id__": 85
"__id__": 91
},
{
"__id__": 87
"__id__": 93
},
{
"__id__": 112
"__id__": 118
}
],
"_active": false,
......@@ -91,18 +91,21 @@
},
{
"__id__": 5
},
{
"__id__": 47
}
],
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 53
},
{
"__id__": 48
"__id__": 54
},
{
"__id__": 49
"__id__": 55
}
],
"_prefab": null,
......@@ -2352,6 +2355,228 @@
"_originalHeight": 720,
"_id": "17A0y7MFRMZa6h7EBnzO0u"
},
{
"__type__": "cc.Node",
"_name": "btn_return",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 52
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 139,
"height": 97
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-520.5,
261.5,
0,
0,
0,
0,
1,
1,
1,
0
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "efz6llxfVCaq0ofmhbpoQy"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "03ea2113-bed5-49f6-b438-981a51553402"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e9guLP3stLv6tndfQUmAbH"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.1,
"clickEvents": [
{
"__id__": 50
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "66Wvef2TJDA7UVXSAc27xG"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 47
},
"component": "",
"_componentId": "654a52Ru9NCt5tR7JBuwlqy",
"handler": "handleClickBack",
"customEventData": ""
},
{
"__type__": "654a52Ru9NCt5tR7JBuwlqy",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_id": "abIgQ6ozZEwrKZVHCo4KP8"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 50,
"_right": 0,
"_top": 50,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "0dWSqM/5xHnadhCGf8BHHU"
},
{
"__type__": "cc.Canvas",
"_name": "",
......@@ -2415,19 +2640,19 @@
},
"_children": [
{
"__id__": 51
"__id__": 57
},
{
"__id__": 53
"__id__": 59
},
{
"__id__": 57
"__id__": 63
}
],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 68
}
],
"_prefab": null,
......@@ -2483,13 +2708,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 58
}
],
"_prefab": null,
......@@ -2545,7 +2770,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 57
},
"_enabled": true,
"_materials": [
......@@ -2577,17 +2802,17 @@
"_name": "Star",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 56
},
"_children": [
{
"__id__": 54
"__id__": 60
}
],
"_active": false,
"_components": [
{
"__id__": 56
"__id__": 62
}
],
"_prefab": null,
......@@ -2643,13 +2868,13 @@
"_name": "StarBig",
"_objFlags": 0,
"_parent": {
"__id__": 53
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 61
}
],
"_prefab": null,
......@@ -2705,7 +2930,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"_materials": [
......@@ -2737,7 +2962,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 59
},
"_enabled": true,
"_materials": [
......@@ -2769,20 +2994,20 @@
"_name": "Mask",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 56
},
"_children": [
{
"__id__": 58
"__id__": 64
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 66
},
{
"__id__": 61
"__id__": 67
}
],
"_prefab": null,
......@@ -2838,13 +3063,13 @@
"_name": "Star",
"_objFlags": 0,
"_parent": {
"__id__": 57
"__id__": 63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
"__id__": 65
}
],
"_prefab": null,
......@@ -2900,7 +3125,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 64
},
"_enabled": true,
"_materials": [
......@@ -2932,7 +3157,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 63
},
"_enabled": true,
"_materials": [
......@@ -2952,7 +3177,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 63
},
"_enabled": true,
"alignMode": 1,
......@@ -2979,7 +3204,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -3013,19 +3238,19 @@
},
"_children": [
{
"__id__": 64
"__id__": 70
},
{
"__id__": 66
"__id__": 72
},
{
"__id__": 70
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 72
"__id__": 78
}
],
"_prefab": null,
......@@ -3081,13 +3306,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 63
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 65
"__id__": 71
}
],
"_prefab": null,
......@@ -3101,8 +3326,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 288,
"height": 218
"width": 286,
"height": 216
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3143,7 +3368,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 70
},
"_enabled": true,
"_materials": [
......@@ -3175,17 +3400,17 @@
"_name": "Mask",
"_objFlags": 0,
"_parent": {
"__id__": 63
"__id__": 69
},
"_children": [
{
"__id__": 67
"__id__": 73
}
],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 75
}
],
"_prefab": null,
......@@ -3241,13 +3466,13 @@
"_name": "AnsterImg",
"_objFlags": 0,
"_parent": {
"__id__": 66
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
"__id__": 74
}
],
"_prefab": null,
......@@ -3303,7 +3528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -3335,7 +3560,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -3355,13 +3580,13 @@
"_name": "DistroyAnime",
"_objFlags": 0,
"_parent": {
"__id__": 63
"__id__": 69
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 71
"__id__": 77
}
],
"_prefab": null,
......@@ -3417,7 +3642,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -3457,7 +3682,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 69
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3529,19 +3754,19 @@
},
"_children": [
{
"__id__": 74
"__id__": 80
},
{
"__id__": 76
"__id__": 82
},
{
"__id__": 82
"__id__": 88
}
],
"_active": true,
"_components": [
{
"__id__": 84
"__id__": 90
}
],
"_prefab": null,
......@@ -3597,13 +3822,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 73
"__id__": 79
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 81
}
],
"_prefab": null,
......@@ -3617,8 +3842,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 334,
"height": 129
"width": 328,
"height": 123
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3659,7 +3884,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 80
},
"_enabled": true,
"_materials": [
......@@ -3691,17 +3916,17 @@
"_name": "Mask",
"_objFlags": 0,
"_parent": {
"__id__": 73
"__id__": 79
},
"_children": [
{
"__id__": 77
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 87
}
],
"_prefab": null,
......@@ -3757,17 +3982,17 @@
"_name": "AnswerText",
"_objFlags": 0,
"_parent": {
"__id__": 76
"__id__": 82
},
"_children": [
{
"__id__": 78
"__id__": 84
}
],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 86
}
],
"_prefab": null,
......@@ -3823,13 +4048,13 @@
"_name": "RICHTEXT_CHILD",
"_objFlags": 1024,
"_parent": {
"__id__": 77
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
"__id__": 85
}
],
"_prefab": null,
......@@ -3879,14 +4104,14 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "f7aJYH29NPZJTeeq8HtYz3"
"_id": "6eTwJkFjtLyoJgCldKVTRO"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -3914,14 +4139,14 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "b09dQhs9hKDY+6lNARP8nQ"
"_id": "23W5/0cRpKPb/oXqBTbdDf"
},
{
"__type__": "cc.RichText",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 83
},
"_enabled": true,
"_fontFamily": "Arial",
......@@ -3944,7 +4169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -3964,13 +4189,13 @@
"_name": "DistroyAnime",
"_objFlags": 0,
"_parent": {
"__id__": 73
"__id__": 79
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 83
"__id__": 89
}
],
"_prefab": null,
......@@ -4026,7 +4251,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -4066,7 +4291,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 79
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4140,7 +4365,7 @@
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 92
}
],
"_prefab": null,
......@@ -4196,7 +4421,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 91
},
"_enabled": true,
"_materials": [
......@@ -4231,12 +4456,6 @@
"__id__": 1
},
"_children": [
{
"__id__": 88
},
{
"__id__": 91
},
{
"__id__": 94
},
......@@ -4254,6 +4473,12 @@
},
{
"__id__": 109
},
{
"__id__": 112
},
{
"__id__": 115
}
],
"_active": true,
......@@ -4311,11 +4536,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 89
"__id__": 95
}
],
"_active": true,
......@@ -4373,13 +4598,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 88
"__id__": 94
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 90
"__id__": 96
}
],
"_prefab": null,
......@@ -4435,7 +4660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 95
},
"_enabled": true,
"_materials": [
......@@ -4467,11 +4692,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 92
"__id__": 98
}
],
"_active": true,
......@@ -4529,13 +4754,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 91
"__id__": 97
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 99
}
],
"_prefab": null,
......@@ -4591,7 +4816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 92
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -4623,11 +4848,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 95
"__id__": 101
}
],
"_active": true,
......@@ -4685,13 +4910,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 94
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 96
"__id__": 102
}
],
"_prefab": null,
......@@ -4747,7 +4972,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 95
"__id__": 101
},
"_enabled": true,
"_materials": [
......@@ -4779,11 +5004,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 98
"__id__": 104
}
],
"_active": true,
......@@ -4841,13 +5066,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 97
"__id__": 103
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 105
}
],
"_prefab": null,
......@@ -4903,7 +5128,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
"__id__": 104
},
"_enabled": true,
"_materials": [
......@@ -4935,11 +5160,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 101
"__id__": 107
}
],
"_active": true,
......@@ -4997,13 +5222,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 100
"__id__": 106
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 102
"__id__": 108
}
],
"_prefab": null,
......@@ -5059,7 +5284,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 107
},
"_enabled": true,
"_materials": [
......@@ -5091,11 +5316,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 104
"__id__": 110
}
],
"_active": true,
......@@ -5153,13 +5378,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 103
"__id__": 109
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 105
"__id__": 111
}
],
"_prefab": null,
......@@ -5215,7 +5440,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 110
},
"_enabled": true,
"_materials": [
......@@ -5247,11 +5472,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 107
"__id__": 113
}
],
"_active": true,
......@@ -5309,13 +5534,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 106
"__id__": 112
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 108
"__id__": 114
}
],
"_prefab": null,
......@@ -5371,7 +5596,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 107
"__id__": 113
},
"_enabled": true,
"_materials": [
......@@ -5403,11 +5628,11 @@
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 87
"__id__": 93
},
"_children": [
{
"__id__": 110
"__id__": 116
}
],
"_active": true,
......@@ -5465,13 +5690,13 @@
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 109
"__id__": 115
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 111
"__id__": 117
}
],
"_prefab": null,
......@@ -5527,7 +5752,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 116
},
"_enabled": true,
"_materials": [
......@@ -5562,15 +5787,6 @@
"__id__": 1
},
"_children": [
{
"__id__": 113
},
{
"__id__": 115
},
{
"__id__": 117
},
{
"__id__": 119
},
......@@ -5588,6 +5804,15 @@
},
{
"__id__": 129
},
{
"__id__": 131
},
{
"__id__": 133
},
{
"__id__": 135
}
],
"_active": true,
......@@ -5645,13 +5870,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 120
}
],
"_prefab": null,
......@@ -5707,7 +5932,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 113
"__id__": 119
},
"_enabled": true,
"_clip": {
......@@ -5726,13 +5951,13 @@
"_name": "light",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 122
}
],
"_prefab": null,
......@@ -5788,7 +6013,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 121
},
"_enabled": true,
"_clip": {
......@@ -5807,13 +6032,13 @@
"_name": "move",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 124
}
],
"_prefab": null,
......@@ -5869,7 +6094,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 123
},
"_enabled": true,
"_clip": {
......@@ -5888,13 +6113,13 @@
"_name": "wrong",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 120
"__id__": 126
}
],
"_prefab": null,
......@@ -5950,7 +6175,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
"__id__": 125
},
"_enabled": true,
"_clip": {
......@@ -5969,13 +6194,13 @@
"_name": "appare",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 128
}
],
"_prefab": null,
......@@ -6031,7 +6256,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 127
},
"_enabled": true,
"_clip": {
......@@ -6050,13 +6275,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 124
"__id__": 130
}
],
"_prefab": null,
......@@ -6112,7 +6337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 129
},
"_enabled": true,
"_clip": {
......@@ -6131,13 +6356,13 @@
"_name": "question",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 132
}
],
"_prefab": null,
......@@ -6193,7 +6418,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 125
"__id__": 131
},
"_enabled": true,
"_clip": {
......@@ -6212,13 +6437,13 @@
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 128
"__id__": 134
}
],
"_prefab": null,
......@@ -6274,7 +6499,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 127
"__id__": 133
},
"_enabled": true,
"_clip": {
......@@ -6293,13 +6518,13 @@
"_name": "end",
"_objFlags": 0,
"_parent": {
"__id__": 112
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 136
}
],
"_prefab": null,
......@@ -6355,7 +6580,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 135
},
"_enabled": true,
"_clip": {
......
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
}
handleClickBack() {
const middleLayer = global["middleLayer"];
if (middleLayer) {
// 有些模板需要在返回时上报数据,直接把数据作为参数传入就可以了
middleLayer.exitGame({});
} else {
console.log("==触发返回事件==");
}
}
// update (dt) {}
}
{
"ver": "1.0.8",
"uuid": "654a5d91-bbd3-42b7-9b51-ec906ec25ab2",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2ebe5c13-f5cf-4a88-a73f-c6f58769b0e2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 139,
"height": 97,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "03ea2113-bed5-49f6-b438-981a51553402",
"rawTextureUuid": "2ebe5c13-f5cf-4a88-a73f-c6f58769b0e2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 139,
"height": 97,
"rawWidth": 139,
"rawHeight": 97,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment