Commit 5f99a3b4 authored by Vũ Gia Vương's avatar Vũ Gia Vương

add debug ios

parent a9807606
......@@ -78,28 +78,28 @@
"__id__": 11
},
{
"__id__": 64
"__id__": 66
},
{
"__id__": 79
"__id__": 81
},
{
"__id__": 28
"__id__": 30
},
{
"__id__": 81
"__id__": 83
},
{
"__id__": 98
"__id__": 100
}
],
"_active": true,
"_components": [
{
"__id__": 108
"__id__": 110
},
{
"__id__": 109
"__id__": 111
}
],
"_prefab": null,
......@@ -537,16 +537,16 @@
"__id__": 12
},
{
"__id__": 15
"__id__": 17
},
{
"__id__": 22
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 28
}
],
"_prefab": null,
......@@ -604,14 +604,18 @@
"_parent": {
"__id__": 11
},
"_children": [],
"_children": [
{
"__id__": 13
}
],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 15
},
{
"__id__": 14
"__id__": 16
}
],
"_prefab": null,
......@@ -662,6 +666,101 @@
"groupIndex": 0,
"_id": "81rpcoHpZG+qbiC3Iz00lu"
},
{
"__type__": "cc.Node",
"_name": "debug",
"_objFlags": 0,
"_parent": {
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
358.077,
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": "c1JQ5HBq1M1YbNZpa+0QcM"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d5ZSjRUItBTbTs7Y1M45ke"
},
{
"__type__": "ba0b5Nq4fNP4KvnrykIXx3T",
"_name": "",
......@@ -723,13 +822,13 @@
},
"_children": [
{
"__id__": 16
"__id__": 18
}
],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 23
}
],
"_prefab": null,
......@@ -785,20 +884,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 15
"__id__": 17
},
"_children": [
{
"__id__": 17
"__id__": 19
}
],
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 21
},
{
"__id__": 20
"__id__": 22
}
],
"_prefab": null,
......@@ -854,13 +953,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 16
"__id__": 18
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 20
}
],
"_prefab": null,
......@@ -916,7 +1015,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 19
},
"_enabled": true,
"_materials": [
......@@ -951,7 +1050,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 18
},
"_enabled": true,
"_materials": [
......@@ -983,7 +1082,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 18
},
"_enabled": true,
"alignMode": 0,
......@@ -1010,7 +1109,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 17
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1083,7 +1182,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 16
"__id__": 18
},
"_id": "009jyGf0JGyaWytJquX/r/"
},
......@@ -1096,13 +1195,13 @@
},
"_children": [
{
"__id__": 23
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 27
}
],
"_prefab": null,
......@@ -1158,13 +1257,13 @@
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 26
}
],
"_prefab": null,
......@@ -1220,7 +1319,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 25
},
"_enabled": true,
"_materials": [
......@@ -1252,7 +1351,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
"__id__": 24
},
"_enabled": true,
"_id": "d4FPzvmYhLzKDMGhWyEnXj"
......@@ -1266,13 +1365,13 @@
},
"_enabled": true,
"selectBtnNode": {
"__id__": 15
"__id__": 17
},
"contentNode": {
"__id__": 27
"__id__": 29
},
"checkedNode": {
"__id__": 35
"__id__": 37
},
"_id": "12WntYtI5C+bsPwyWnA236"
},
......@@ -1281,29 +1380,29 @@
"_name": "Conttent",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [
{
"__id__": 46
"__id__": 48
},
{
"__id__": 50
"__id__": 52
},
{
"__id__": 54
"__id__": 56
},
{
"__id__": 58
"__id__": 60
}
],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 64
},
{
"__id__": 63
"__id__": 65
}
],
"_prefab": null,
......@@ -1362,9 +1461,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 29
},
{
"__id__": 31
},
......@@ -1372,22 +1468,25 @@
"__id__": 33
},
{
"__id__": 27
"__id__": 35
},
{
"__id__": 35
"__id__": 29
},
{
"__id__": 37
},
{
"__id__": 39
}
],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 46
},
{
"__id__": 45
"__id__": 47
}
],
"_prefab": null,
......@@ -1443,13 +1542,13 @@
"_name": "Mask",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 32
}
],
"_prefab": null,
......@@ -1505,7 +1604,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 31
},
"_enabled": true,
"_materials": [
......@@ -1537,13 +1636,13 @@
"_name": "BG",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 34
}
],
"_prefab": null,
......@@ -1599,7 +1698,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 33
},
"_enabled": true,
"_materials": [
......@@ -1631,13 +1730,13 @@
"_name": "Title",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 36
}
],
"_prefab": null,
......@@ -1693,7 +1792,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 35
},
"_enabled": false,
"_materials": [
......@@ -1726,13 +1825,13 @@
"_name": "Checked",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
"__id__": 38
}
],
"_prefab": null,
......@@ -1788,7 +1887,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 37
},
"_enabled": true,
"_materials": [
......@@ -1820,17 +1919,17 @@
"_name": "OkButton",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 30
},
"_children": [
{
"__id__": 38
"__id__": 40
}
],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 45
}
],
"_prefab": null,
......@@ -1886,20 +1985,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 37
"__id__": 39
},
"_children": [
{
"__id__": 39
"__id__": 41
}
],
"_active": true,
"_components": [
{
"__id__": 41
"__id__": 43
},
{
"__id__": 42
"__id__": 44
}
],
"_prefab": null,
......@@ -1955,13 +2054,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 38
"__id__": 40
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 42
}
],
"_prefab": null,
......@@ -2017,7 +2116,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -2052,7 +2151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 40
},
"_enabled": true,
"_materials": [
......@@ -2084,7 +2183,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 40
},
"_enabled": true,
"alignMode": 0,
......@@ -2111,7 +2210,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 39
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2184,7 +2283,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 38
"__id__": 40
},
"_id": "e8Z5R1m9xLJZ0M9KGeyDSC"
},
......@@ -2193,7 +2292,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 30
},
"_enabled": true,
"_id": "f1aq5xMrVN341tWAhOykW0"
......@@ -2203,7 +2302,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 30
},
"_enabled": true,
"_id": "69dYJ1wBlP5Z6QRZCRykh8"
......@@ -2213,17 +2312,17 @@
"_name": "box copy",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 29
},
"_children": [
{
"__id__": 47
"__id__": 49
}
],
"_active": true,
"_components": [
{
"__id__": 49
"__id__": 51
}
],
"_prefab": null,
......@@ -2279,13 +2378,13 @@
"_name": "ga",
"_objFlags": 0,
"_parent": {
"__id__": 46
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 50
}
],
"_prefab": null,
......@@ -2341,7 +2440,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -2383,7 +2482,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
"__id__": 48
},
"_enabled": true,
"_materials": [
......@@ -2415,17 +2514,17 @@
"_name": "box copy",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 29
},
"_children": [
{
"__id__": 51
"__id__": 53
}
],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 55
}
],
"_prefab": null,
......@@ -2481,13 +2580,13 @@
"_name": "gai lung",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 52
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 54
}
],
"_prefab": null,
......@@ -2543,7 +2642,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 53
},
"_enabled": true,
"_materials": [
......@@ -2585,7 +2684,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2617,17 +2716,17 @@
"_name": "box copy",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 29
},
"_children": [
{
"__id__": 55
"__id__": 57
}
],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 59
}
],
"_prefab": null,
......@@ -2683,13 +2782,13 @@
"_name": "gay",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 56
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 58
}
],
"_prefab": null,
......@@ -2745,7 +2844,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 57
},
"_enabled": true,
"_materials": [
......@@ -2787,7 +2886,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -2819,17 +2918,17 @@
"_name": "box",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 29
},
"_children": [
{
"__id__": 59
"__id__": 61
}
],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 63
}
],
"_prefab": null,
......@@ -2885,13 +2984,13 @@
"_name": "Bua",
"_objFlags": 0,
"_parent": {
"__id__": 58
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 62
}
],
"_prefab": null,
......@@ -2947,7 +3046,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 61
},
"_enabled": true,
"_materials": [
......@@ -2989,7 +3088,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 60
},
"_enabled": true,
"_materials": [
......@@ -3021,7 +3120,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 29
},
"_enabled": false,
"_materials": [
......@@ -3053,7 +3152,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
"__id__": 29
},
"_enabled": true,
"_layoutSize": {
......@@ -3089,22 +3188,22 @@
},
"_children": [
{
"__id__": 65
"__id__": 67
},
{
"__id__": 68
"__id__": 70
},
{
"__id__": 70
"__id__": 72
},
{
"__id__": 74
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 80
}
],
"_prefab": null,
......@@ -3160,16 +3259,16 @@
"_name": "Chum",
"_objFlags": 0,
"_parent": {
"__id__": 64
"__id__": 66
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 68
},
{
"__id__": 67
"__id__": 69
}
],
"_prefab": null,
......@@ -3225,7 +3324,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 67
},
"_enabled": true,
"_id": "32Nb7fXTdNIYe2FGNiHQD8"
......@@ -3235,7 +3334,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 67
},
"_enabled": true,
"_materials": [
......@@ -3277,13 +3376,13 @@
"_name": "hu",
"_objFlags": 0,
"_parent": {
"__id__": 64
"__id__": 66
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 71
}
],
"_prefab": null,
......@@ -3339,7 +3438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 70
},
"_enabled": true,
"_materials": [
......@@ -3381,17 +3480,17 @@
"_name": "buaPos",
"_objFlags": 0,
"_parent": {
"__id__": 64
"__id__": 66
},
"_children": [
{
"__id__": 71
"__id__": 73
}
],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 75
}
],
"_prefab": null,
......@@ -3447,13 +3546,13 @@
"_name": "Bua",
"_objFlags": 0,
"_parent": {
"__id__": 70
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 72
"__id__": 74
}
],
"_prefab": null,
......@@ -3509,7 +3608,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -3551,7 +3650,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 72
},
"_enabled": true,
"_id": "74FwAooblKp5Uz0cmQR1wo"
......@@ -3561,17 +3660,17 @@
"_name": "Tutorial Tap",
"_objFlags": 0,
"_parent": {
"__id__": 64
"__id__": 66
},
"_children": [
{
"__id__": 75
"__id__": 77
}
],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 79
}
],
"_prefab": null,
......@@ -3627,13 +3726,13 @@
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 74
"__id__": 76
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 78
}
],
"_prefab": null,
......@@ -3689,7 +3788,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 77
},
"_enabled": true,
"_materials": [
......@@ -3721,7 +3820,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 76
},
"_enabled": true,
"_id": "e7adhzbtVIXItHuXv9Y+hG"
......@@ -3731,14 +3830,14 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 64
"__id__": 66
},
"_enabled": true,
"bottleIdle": {
"__id__": 68
"__id__": 70
},
"bottleAction": {
"__id__": 65
"__id__": 67
},
"_id": "45yzC1EPtJP4Z8W/DF1iwD"
},
......@@ -3753,7 +3852,7 @@
"_active": false,
"_components": [
{
"__id__": 80
"__id__": 82
}
],
"_prefab": null,
......@@ -3809,7 +3908,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 79
"__id__": 81
},
"_enabled": true,
"_id": "96hHP+ssxLNpn8/i2AKAyI"
......@@ -3823,22 +3922,22 @@
},
"_children": [
{
"__id__": 82
"__id__": 84
},
{
"__id__": 84
"__id__": 86
},
{
"__id__": 89
"__id__": 91
}
],
"_active": true,
"_components": [
{
"__id__": 96
"__id__": 98
},
{
"__id__": 97
"__id__": 99
}
],
"_prefab": null,
......@@ -3894,13 +3993,13 @@
"_name": "Mask copy",
"_objFlags": 0,
"_parent": {
"__id__": 81
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 83
"__id__": 85
}
],
"_prefab": null,
......@@ -3956,7 +4055,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -3988,20 +4087,20 @@
"_name": "The",
"_objFlags": 0,
"_parent": {
"__id__": 81
"__id__": 83
},
"_children": [
{
"__id__": 85
"__id__": 87
}
],
"_active": true,
"_components": [
{
"__id__": 87
"__id__": 89
},
{
"__id__": 88
"__id__": 90
}
],
"_prefab": null,
......@@ -4057,13 +4156,13 @@
"_name": "text1",
"_objFlags": 0,
"_parent": {
"__id__": 84
"__id__": 86
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 88
}
],
"_prefab": null,
......@@ -4119,7 +4218,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 85
"__id__": 87
},
"_enabled": true,
"_materials": [
......@@ -4151,7 +4250,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 86
},
"_enabled": true,
"frames": [
......@@ -4169,7 +4268,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 86
},
"_enabled": true,
"_materials": [
......@@ -4211,17 +4310,17 @@
"_name": "Replay Button",
"_objFlags": 0,
"_parent": {
"__id__": 81
"__id__": 83
},
"_children": [
{
"__id__": 90
"__id__": 92
}
],
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 97
}
],
"_prefab": null,
......@@ -4277,20 +4376,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 89
"__id__": 91
},
"_children": [
{
"__id__": 91
"__id__": 93
}
],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 95
},
{
"__id__": 94
"__id__": 96
}
],
"_prefab": null,
......@@ -4346,13 +4445,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 90
"__id__": 92
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 92
"__id__": 94
}
],
"_prefab": null,
......@@ -4408,7 +4507,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 91
"__id__": 93
},
"_enabled": true,
"_materials": [
......@@ -4443,7 +4542,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -4475,7 +4574,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 92
},
"_enabled": true,
"alignMode": 0,
......@@ -4502,7 +4601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 89
"__id__": 91
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4575,7 +4674,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 90
"__id__": 92
},
"_id": "adCMRaOEVD5LOjd7MAm9EO"
},
......@@ -4584,7 +4683,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 83
},
"_enabled": true,
"_id": "bcaw0ZNyRPGoK8ATotq1yF"
......@@ -4594,7 +4693,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 83
},
"_enabled": true,
"_id": "17J7OqMb1NsbF4iJiNTrDS"
......@@ -4607,9 +4706,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 99
},
{
"__id__": 101
},
......@@ -4618,12 +4714,15 @@
},
{
"__id__": 105
},
{
"__id__": 107
}
],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 109
}
],
"_prefab": null,
......@@ -4679,13 +4778,13 @@
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 102
}
],
"_prefab": null,
......@@ -4741,7 +4840,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 101
},
"_enabled": true,
"_clip": {
......@@ -4760,13 +4859,13 @@
"_name": "Cartoon Short Version 2_01",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 102
"__id__": 104
}
],
"_prefab": null,
......@@ -4822,7 +4921,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 103
},
"_enabled": true,
"_clip": {
......@@ -4841,13 +4940,13 @@
"_name": "tieng_va_cham_chai_thuy_tinh-www_tiengdong_com",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 104
"__id__": 106
}
],
"_prefab": null,
......@@ -4903,7 +5002,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 105
},
"_enabled": true,
"_clip": {
......@@ -4922,13 +5021,13 @@
"_name": "breaking-a-vase-remix-87091",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 100
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 108
}
],
"_prefab": null,
......@@ -4984,7 +5083,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 107
},
"_enabled": true,
"_clip": {
......@@ -5003,17 +5102,17 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
"__id__": 100
},
"_enabled": true,
"rollingSound": {
"__id__": 100
"__id__": 102
},
"breakingSound": {
"__id__": 106
"__id__": 108
},
"dropSound": {
"__id__": 104
"__id__": 106
},
"_id": "a5vu6IE1ROn6VO7UPM9J3p"
},
......
......@@ -14,9 +14,11 @@ export default class HuController extends cc.Component {
private _count = 0;
private _isShake = false;
private _track: TrackEntry = null;
private _debug: cc.Label = null;
protected onLoad(): void {
this._spine = this.node.getComponent(sp.Skeleton);
this._debug = this.node.getComponentInChildren(cc.Label);
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this)
......@@ -28,11 +30,53 @@ export default class HuController extends cc.Component {
this.initBottle();
});
if (cc.sys.os === cc.sys.OS_IOS) {
this.setDeviceMotionIOS();
}
else {
this.scheduleOnce(this.setDeviceMotion, 2);
}
this.initBottle();
}
private setDeviceMotionIOS() {
const debug = (text: string) => {
this._debug.string = text;
}
debug('setDeviceMotionIOS');
if (window.DeviceMotionEvent) {
// Yêu cầu quyền truy cập trên iOS (từ iOS 13+)
if (typeof (DeviceMotionEvent as any).requestPermission === 'function') {
debug('requestPermission');
(DeviceMotionEvent as any).requestPermission()
.then(permissionState => {
debug('requestPermission: ' + permissionState);
if (permissionState === 'granted') {
debug('granted setDeviceMotion');
this.setDeviceMotion();
} else {
debug('Không được cấp quyền sử dụng DeviceMotion');
console.log('Không được cấp quyền sử dụng DeviceMotion');
}
})
.catch(e => {
console.error(e);
debug('Không được cấp quyền sử dụng DeviceMotion');
});
} else {
debug('Không hỗ trợ requestPermission');
this.setDeviceMotion();
}
} else {
debug('Trình duyệt không hỗ trợ DeviceMotion API');
console.log('Trình duyệt không hỗ trợ DeviceMotion API');
}
}
private initBottle() {
this._spine.setAnimation(1, "Rotate", false);
this._spine.timeScale = this._pointStart ? 0 : 0.5;
......@@ -50,6 +94,7 @@ export default class HuController extends cc.Component {
private onTouchEnd(): void {
this.scheduleOnce(() => {
this._spine.timeScale = 0;
console.log('this._track.trackTime', this._track.trackTime)
if (this._track.trackTime < 0) {
this._track.trackTime = this._track.animationEnd - 1e-9;
}
......
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