Commit 5396b7b4 authored by 张子元's avatar 张子元

feat:添加泡泡点击事件

parent 6d367c3d
......@@ -84,28 +84,28 @@
"__id__": 71
},
{
"__id__": 83
"__id__": 82
},
{
"__id__": 104
"__id__": 103
},
{
"__id__": 144
"__id__": 143
},
{
"__id__": 189
"__id__": 188
}
],
"_active": true,
"_components": [
{
"__id__": 199
"__id__": 198
},
{
"__id__": 200
"__id__": 199
},
{
"__id__": 201
"__id__": 200
}
],
"_prefab": null,
......@@ -3224,13 +3224,13 @@
"__id__": 75
},
{
"__id__": 81
"__id__": 80
}
],
"_active": true,
"_components": [
{
"__id__": 82
"__id__": 81
}
],
"_prefab": null,
......@@ -3391,11 +3391,7 @@
}
],
"_active": false,
"_components": [
{
"__id__": 80
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -3407,8 +3403,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 300
"width": 70,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3563,8 +3559,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 314,
"height": 314
"width": 240,
"height": 240
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -3632,76 +3628,6 @@
"_atlas": null,
"_id": "59VZnhWc1KPZ6Cb0LtuHLx"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_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": {
"__id__": 75
},
"_id": "77V6o11PpEwLoUSjag/YAJ"
},
{
"__type__": "cc.Node",
"_name": "layer_paopao",
......@@ -3801,23 +3727,23 @@
},
"_children": [
{
"__id__": 84
"__id__": 83
},
{
"__id__": 89
"__id__": 88
}
],
"_active": false,
"_components": [
{
"__id__": 101
"__id__": 100
},
{
"__id__": 102
"__id__": 101
}
],
"_prefab": {
"__id__": 103
"__id__": 102
},
"_opacity": 255,
"_color": {
......@@ -3871,23 +3797,23 @@
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 82
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 84
},
{
"__id__": 86
"__id__": 85
},
{
"__id__": 87
"__id__": 86
}
],
"_prefab": {
"__id__": 88
"__id__": 87
},
"_opacity": 255,
"_color": {
......@@ -3941,7 +3867,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 83
},
"_enabled": true,
"_materials": [
......@@ -3973,7 +3899,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 83
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4041,7 +3967,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 83
},
"_enabled": true,
"alignMode": 1,
......@@ -4066,7 +3992,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4079,27 +4005,27 @@
"_name": "img_npc_voice",
"_objFlags": 0,
"_parent": {
"__id__": 83
"__id__": 82
},
"_children": [
{
"__id__": 90
"__id__": 89
},
{
"__id__": 93
"__id__": 92
},
{
"__id__": 96
"__id__": 95
}
],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 98
}
],
"_prefab": {
"__id__": 100
"__id__": 99
},
"_opacity": 255,
"_color": {
......@@ -4153,17 +4079,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 91
"__id__": 90
}
],
"_prefab": {
"__id__": 92
"__id__": 91
},
"_opacity": 255,
"_color": {
......@@ -4217,7 +4143,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 89
},
"_enabled": true,
"_materials": [
......@@ -4247,7 +4173,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4260,17 +4186,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 88
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 94
"__id__": 93
}
],
"_prefab": {
"__id__": 95
"__id__": 94
},
"_opacity": 255,
"_color": {
......@@ -4324,7 +4250,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 93
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -4354,7 +4280,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4367,17 +4293,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 89
"__id__": 88
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 97
"__id__": 96
}
],
"_prefab": {
"__id__": 98
"__id__": 97
},
"_opacity": 255,
"_color": {
......@@ -4431,7 +4357,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 95
},
"_enabled": true,
"_materials": [
......@@ -4461,7 +4387,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4474,7 +4400,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 88
},
"_enabled": true,
"alignMode": 1,
......@@ -4499,7 +4425,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4512,7 +4438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 82
},
"_enabled": true,
"alignMode": 1,
......@@ -4539,7 +4465,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
"__id__": 82
},
"_enabled": true,
"_id": "4bOu5J5BNMRbgcr/N6dJzl"
......@@ -4547,7 +4473,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 83
"__id__": 82
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
......@@ -4564,20 +4490,20 @@
},
"_children": [
{
"__id__": 105
"__id__": 104
}
],
"_active": false,
"_components": [
{
"__id__": 141
"__id__": 140
},
{
"__id__": 142
"__id__": 141
}
],
"_prefab": {
"__id__": 143
"__id__": 142
},
"_opacity": 255,
"_color": {
......@@ -4631,39 +4557,39 @@
"_name": "layout_record",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 103
},
"_children": [
{
"__id__": 106
"__id__": 105
},
{
"__id__": 109
"__id__": 108
},
{
"__id__": 112
"__id__": 111
},
{
"__id__": 115
"__id__": 114
},
{
"__id__": 118
"__id__": 117
},
{
"__id__": 121
"__id__": 120
},
{
"__id__": 124
"__id__": 123
}
],
"_active": true,
"_components": [
{
"__id__": 139
"__id__": 138
}
],
"_prefab": {
"__id__": 140
"__id__": 139
},
"_opacity": 255,
"_color": {
......@@ -4717,17 +4643,17 @@
"_name": "voice_white",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 106
}
],
"_prefab": {
"__id__": 108
"__id__": 107
},
"_opacity": 255,
"_color": {
......@@ -4781,7 +4707,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 106
"__id__": 105
},
"_enabled": true,
"_materials": [
......@@ -4811,7 +4737,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4824,17 +4750,17 @@
"_name": "record_bg",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 110
"__id__": 109
}
],
"_prefab": {
"__id__": 111
"__id__": 110
},
"_opacity": 255,
"_color": {
......@@ -4888,7 +4814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
"__id__": 108
},
"_enabled": true,
"_materials": [
......@@ -4918,7 +4844,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -4931,17 +4857,17 @@
"_name": "record_icon",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 112
}
],
"_prefab": {
"__id__": 114
"__id__": 113
},
"_opacity": 255,
"_color": {
......@@ -4995,7 +4921,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
"__id__": 111
},
"_enabled": true,
"_materials": [
......@@ -5025,7 +4951,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5038,17 +4964,17 @@
"_name": "record_time",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 115
}
],
"_prefab": {
"__id__": 117
"__id__": 116
},
"_opacity": 255,
"_color": {
......@@ -5102,7 +5028,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -5132,7 +5058,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5145,17 +5071,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 119
"__id__": 118
}
],
"_prefab": {
"__id__": 120
"__id__": 119
},
"_opacity": 255,
"_color": {
......@@ -5209,7 +5135,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 117
},
"_enabled": true,
"_materials": [
......@@ -5247,7 +5173,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5260,17 +5186,17 @@
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 121
}
],
"_prefab": {
"__id__": 123
"__id__": 122
},
"_opacity": 255,
"_color": {
......@@ -5324,7 +5250,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 120
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5390,7 +5316,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5403,30 +5329,30 @@
"_name": "btn_play",
"_objFlags": 0,
"_parent": {
"__id__": 105
"__id__": 104
},
"_children": [
{
"__id__": 125
"__id__": 124
},
{
"__id__": 128
"__id__": 127
},
{
"__id__": 131
"__id__": 130
},
{
"__id__": 134
"__id__": 133
}
],
"_active": false,
"_components": [
{
"__id__": 137
"__id__": 136
}
],
"_prefab": {
"__id__": 138
"__id__": 137
},
"_opacity": 255,
"_color": {
......@@ -5480,17 +5406,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 124
"__id__": 123
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 125
}
],
"_prefab": {
"__id__": 127
"__id__": 126
},
"_opacity": 255,
"_color": {
......@@ -5544,7 +5470,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 125
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5574,7 +5500,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5587,17 +5513,17 @@
"_name": "p0",
"_objFlags": 0,
"_parent": {
"__id__": 124
"__id__": 123
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 128
}
],
"_prefab": {
"__id__": 130
"__id__": 129
},
"_opacity": 255,
"_color": {
......@@ -5651,7 +5577,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 127
},
"_enabled": true,
"_materials": [
......@@ -5681,7 +5607,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5694,17 +5620,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 124
"__id__": 123
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 132
"__id__": 131
}
],
"_prefab": {
"__id__": 133
"__id__": 132
},
"_opacity": 255,
"_color": {
......@@ -5758,7 +5684,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 130
},
"_enabled": true,
"_materials": [
......@@ -5788,7 +5714,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5801,17 +5727,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 124
"__id__": 123
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 135
"__id__": 134
}
],
"_prefab": {
"__id__": 136
"__id__": 135
},
"_opacity": 255,
"_color": {
......@@ -5865,7 +5791,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 133
},
"_enabled": true,
"_materials": [
......@@ -5895,7 +5821,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5908,7 +5834,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 123
},
"_enabled": true,
"alignMode": 1,
......@@ -5933,7 +5859,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5946,7 +5872,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 104
},
"_enabled": true,
"alignMode": 1,
......@@ -5971,7 +5897,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -5984,7 +5910,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 103
},
"_enabled": true,
"alignMode": 1,
......@@ -6011,7 +5937,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 103
},
"_enabled": true,
"_id": "28SYbspDNAfqMNbpyAm+q/"
......@@ -6019,7 +5945,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 104
"__id__": 103
},
"asset": {
"__uuid__": "35fbe4f1-249e-4263-90a1-de923c148363"
......@@ -6036,29 +5962,29 @@
},
"_children": [
{
"__id__": 145
"__id__": 144
},
{
"__id__": 159
"__id__": 158
},
{
"__id__": 168
"__id__": 167
},
{
"__id__": 177
"__id__": 176
}
],
"_active": false,
"_components": [
{
"__id__": 186
"__id__": 185
},
{
"__id__": 187
"__id__": 186
}
],
"_prefab": {
"__id__": 188
"__id__": 187
},
"_opacity": 255,
"_color": {
......@@ -6112,26 +6038,26 @@
"_name": "voice",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 143
},
"_children": [
{
"__id__": 146
"__id__": 145
},
{
"__id__": 149
"__id__": 148
},
{
"__id__": 152
"__id__": 151
},
{
"__id__": 155
"__id__": 154
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 158
"__id__": 157
},
"_opacity": 255,
"_color": {
......@@ -6185,17 +6111,17 @@
"_name": "excellent",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 144
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 147
"__id__": 146
}
],
"_prefab": {
"__id__": 148
"__id__": 147
},
"_opacity": 255,
"_color": {
......@@ -6249,7 +6175,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 146
"__id__": 145
},
"_enabled": true,
"_clip": {
......@@ -6266,7 +6192,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6279,17 +6205,17 @@
"_name": "good",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 144
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 150
"__id__": 149
}
],
"_prefab": {
"__id__": 151
"__id__": 150
},
"_opacity": 255,
"_color": {
......@@ -6343,7 +6269,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 149
"__id__": 148
},
"_enabled": true,
"_clip": {
......@@ -6360,7 +6286,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6373,17 +6299,17 @@
"_name": "tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 144
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 153
"__id__": 152
}
],
"_prefab": {
"__id__": 154
"__id__": 153
},
"_opacity": 255,
"_color": {
......@@ -6437,7 +6363,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 152
"__id__": 151
},
"_enabled": true,
"_clip": {
......@@ -6454,7 +6380,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6467,17 +6393,17 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 145
"__id__": 144
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 156
"__id__": 155
}
],
"_prefab": {
"__id__": 157
"__id__": 156
},
"_opacity": 255,
"_color": {
......@@ -6531,7 +6457,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 155
"__id__": 154
},
"_enabled": true,
"_clip": {
......@@ -6548,7 +6474,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6559,7 +6485,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6572,24 +6498,24 @@
"_name": "layout_excellent",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 143
},
"_children": [
{
"__id__": 160
"__id__": 159
},
{
"__id__": 163
"__id__": 162
}
],
"_active": false,
"_components": [
{
"__id__": 166
"__id__": 165
}
],
"_prefab": {
"__id__": 167
"__id__": 166
},
"_opacity": 255,
"_color": {
......@@ -6643,17 +6569,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 159
"__id__": 158
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 161
"__id__": 160
}
],
"_prefab": {
"__id__": 162
"__id__": 161
},
"_opacity": 150,
"_color": {
......@@ -6707,7 +6633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 160
"__id__": 159
},
"_enabled": true,
"_materials": [
......@@ -6737,7 +6663,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6750,17 +6676,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 159
"__id__": 158
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 164
"__id__": 163
}
],
"_prefab": {
"__id__": 165
"__id__": 164
},
"_opacity": 255,
"_color": {
......@@ -6814,7 +6740,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 163
"__id__": 162
},
"_enabled": true,
"_materials": [
......@@ -6852,7 +6778,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6865,7 +6791,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
"__id__": 158
},
"_enabled": true,
"alignMode": 1,
......@@ -6890,7 +6816,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -6903,24 +6829,24 @@
"_name": "layout_good",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 143
},
"_children": [
{
"__id__": 169
"__id__": 168
},
{
"__id__": 172
"__id__": 171
}
],
"_active": false,
"_components": [
{
"__id__": 175
"__id__": 174
}
],
"_prefab": {
"__id__": 176
"__id__": 175
},
"_opacity": 255,
"_color": {
......@@ -6974,17 +6900,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 168
"__id__": 167
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 170
"__id__": 169
}
],
"_prefab": {
"__id__": 171
"__id__": 170
},
"_opacity": 150,
"_color": {
......@@ -7038,7 +6964,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 169
"__id__": 168
},
"_enabled": true,
"_materials": [
......@@ -7068,7 +6994,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7081,17 +7007,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 168
"__id__": 167
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 173
"__id__": 172
}
],
"_prefab": {
"__id__": 174
"__id__": 173
},
"_opacity": 255,
"_color": {
......@@ -7145,7 +7071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 172
"__id__": 171
},
"_enabled": true,
"_materials": [
......@@ -7183,7 +7109,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7196,7 +7122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 168
"__id__": 167
},
"_enabled": true,
"alignMode": 1,
......@@ -7221,7 +7147,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7234,24 +7160,24 @@
"_name": "layout_tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 143
},
"_children": [
{
"__id__": 178
"__id__": 177
},
{
"__id__": 181
"__id__": 180
}
],
"_active": false,
"_components": [
{
"__id__": 184
"__id__": 183
}
],
"_prefab": {
"__id__": 185
"__id__": 184
},
"_opacity": 255,
"_color": {
......@@ -7305,17 +7231,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 177
"__id__": 176
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 179
"__id__": 178
}
],
"_prefab": {
"__id__": 180
"__id__": 179
},
"_opacity": 150,
"_color": {
......@@ -7369,7 +7295,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 178
"__id__": 177
},
"_enabled": true,
"_materials": [
......@@ -7399,7 +7325,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7412,17 +7338,17 @@
"_name": "AniNode",
"_objFlags": 0,
"_parent": {
"__id__": 177
"__id__": 176
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 182
"__id__": 181
}
],
"_prefab": {
"__id__": 183
"__id__": 182
},
"_opacity": 255,
"_color": {
......@@ -7476,7 +7402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 181
"__id__": 180
},
"_enabled": true,
"_materials": [
......@@ -7514,7 +7440,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7527,7 +7453,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
"__id__": 176
},
"_enabled": true,
"alignMode": 1,
......@@ -7552,7 +7478,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7565,7 +7491,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 143
},
"_enabled": true,
"alignMode": 1,
......@@ -7592,7 +7518,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 143
},
"_enabled": true,
"_id": "f8RLolwXVG8YWO7i32J+zq"
......@@ -7600,7 +7526,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 144
"__id__": 143
},
"asset": {
"__uuid__": "b4ac88a3-938b-460f-841e-8f69789677bc"
......@@ -7617,13 +7543,13 @@
},
"_children": [
{
"__id__": 190
"__id__": 189
},
{
"__id__": 193
"__id__": 192
},
{
"__id__": 196
"__id__": 195
}
],
"_active": false,
......@@ -7681,11 +7607,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 188
},
"_children": [
{
"__id__": 191
"__id__": 190
}
],
"_active": true,
......@@ -7743,13 +7669,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 189
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 192
"__id__": 191
}
],
"_prefab": null,
......@@ -7805,7 +7731,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191
"__id__": 190
},
"_enabled": true,
"_materials": [],
......@@ -7836,11 +7762,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 188
},
"_children": [
{
"__id__": 194
"__id__": 193
}
],
"_active": true,
......@@ -7898,13 +7824,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 193
"__id__": 192
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 195
"__id__": 194
}
],
"_prefab": null,
......@@ -7960,7 +7886,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 194
"__id__": 193
},
"_enabled": true,
"_materials": [],
......@@ -7988,11 +7914,11 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 189
"__id__": 188
},
"_children": [
{
"__id__": 197
"__id__": 196
}
],
"_active": true,
......@@ -8050,13 +7976,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 196
"__id__": 195
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 198
"__id__": 197
}
],
"_prefab": null,
......@@ -8112,7 +8038,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 197
"__id__": 196
},
"_enabled": true,
"_clip": {
......
......@@ -21,6 +21,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
private speed: number;
private isCorrect: boolean;
private targetPosition: number;
async onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
......@@ -75,6 +77,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc.tween(newPaoPao).to(0.8, { opacity: 255 }).call(() => {
let positionY = Math.floor(Math.random() * 300)
let positionX = this.getPositionX()
this.targetPosition = positionY
cc.tween(newPaoPao).to(positionY / this.speed, { x: positionX, y: positionY, scale: 3 }).call(() => {
if (newPaoPao.y < cc.winSize.height + 105) {
cc.tween(newPaoPao).to((750 - newPaoPao.y) / this.speed, { y: cc.winSize.height + 105 }).call(() => {
......@@ -96,13 +99,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
// 点击泡泡
touchPaoPao(e: any) {
// 如果泡泡没有到指定位置不允许点击
if(this.targetPosition > e.target.y) return
if(this.isCorrect) {
// 成功 泡泡破碎 里面的内容消失
let paopao = e.target.getChildByName("bubble")
let broken = e.target.getChildByName("bubble_broken")
broken.width = 70
broken.height = 70
pg.view.visible(paopao, false)
pg.view.visible(broken, true)
} else {
// 失败 泡泡左右微晃两次
let fail = e.target
let btn = cc.tween(fail)
btn.by(0.1, { x: -5 }).by(0.1, { x: 0 }).by(0.1, { x: 5 }).by(0.1, { x: 0 })
btn.by(0.1, { x: -5 }).by(0.1, { x: 0 }).by(0.1, { x: 5 }).by(0.1, { x: 0 })
btn.start()
let obj = cc.tween(e.target)
obj.by(0.1, { x: -5 }).by(0.1, { x: 0 }).by(0.1, { x: 5 }).by(0.1, { x: 0 })
obj.by(0.1, { x: -5 }).by(0.1, { x: 0 }).by(0.1, { x: 5 }).by(0.1, { x: 0 })
obj.start()
}
}
}
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