Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy08_caici
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
hy08_caici
Commits
1a487a13
Commit
1a487a13
authored
Jul 12, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码重构
parent
19536aba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
514 additions
and
450 deletions
+514
-450
hy08_caici.fire
assets/hy08_caici/scene/hy08_caici.fire
+397
-336
hy08_caici.ts
assets/hy08_caici/scene/hy08_caici.ts
+117
-114
No files found.
assets/hy08_caici/scene/hy08_caici.fire
View file @
1a487a13
...
...
@@ -78,28 +78,28 @@
"__id__": 14
},
{
"__id__": 8
5
"__id__": 8
6
},
{
"__id__": 1
09
"__id__": 1
10
},
{
"__id__": 13
1
"__id__": 13
2
},
{
"__id__": 17
0
"__id__": 17
1
}
],
"_active": true,
"_components": [
{
"__id__": 192
},
{
"__id__": 193
},
{
"__id__": 194
},
{
"__id__": 195
}
],
"_prefab": null,
...
...
@@ -678,19 +678,22 @@
"__id__": 23
},
{
"__id__":
32
"__id__":
24
},
{
"__id__":
6
3
"__id__":
3
3
},
{
"__id__": 69
"__id__": 64
},
{
"__id__": 70
}
],
"_active": true,
"_components": [
{
"__id__": 8
4
"__id__": 8
5
}
],
"_prefab": null,
...
...
@@ -801,7 +804,7 @@
},
{
"__type__": "cc.Node",
"_name": "
topQ
uestion",
"_name": "
item_q
uestion",
"_objFlags": 0,
"_parent": {
"__id__": 14
...
...
@@ -869,7 +872,7 @@
},
{
"__type__": "cc.Node",
"_name": "
roundedRectangle
",
"_name": "
bg
",
"_objFlags": 0,
"_parent": {
"__id__": 16
...
...
@@ -963,7 +966,7 @@
},
{
"__type__": "cc.Node",
"_name": "
push
",
"_name": "
img
",
"_objFlags": 0,
"_parent": {
"__id__": 16
...
...
@@ -1055,7 +1058,7 @@
},
{
"__type__": "cc.Node",
"_name": "
answer
",
"_name": "
text
",
"_objFlags": 0,
"_parent": {
"__id__": 16
...
...
@@ -1148,6 +1151,64 @@
"_N$cacheMode": 0,
"_id": "63O5OUQmpLmbO0QqiJ4OUh"
},
{
"__type__": "cc.Node",
"_name": "layout_question",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_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": "b6ksNki6dNcq1AHwBcYv+J"
},
{
"__type__": "cc.Node",
"_name": "countdown",
...
...
@@ -1157,10 +1218,10 @@
},
"_children": [
{
"__id__": 2
4
"__id__": 2
5
},
{
"__id__": 2
8
"__id__": 2
9
}
],
"_active": true,
...
...
@@ -1218,17 +1279,17 @@
"_name": "countdown1",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
4
},
"_children": [
{
"__id__": 2
5
"__id__": 2
6
}
],
"_active": false,
"_components": [
{
"__id__": 2
7
"__id__": 2
8
}
],
"_prefab": null,
...
...
@@ -1284,13 +1345,13 @@
"_name": "countdown1",
"_objFlags": 0,
"_parent": {
"__id__": 2
4
"__id__": 2
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
6
"__id__": 2
7
}
],
"_prefab": null,
...
...
@@ -1346,7 +1407,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
5
"__id__": 2
6
},
"_enabled": true,
"_materials": [
...
...
@@ -1379,7 +1440,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
4
"__id__": 2
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1411,17 +1472,17 @@
"_name": "countdown2",
"_objFlags": 0,
"_parent": {
"__id__": 2
3
"__id__": 2
4
},
"_children": [
{
"__id__":
29
"__id__":
30
}
],
"_active": false,
"_components": [
{
"__id__": 3
1
"__id__": 3
2
}
],
"_prefab": null,
...
...
@@ -1477,13 +1538,13 @@
"_name": "countdown2",
"_objFlags": 0,
"_parent": {
"__id__": 2
8
"__id__": 2
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
0
"__id__": 3
1
}
],
"_prefab": null,
...
...
@@ -1539,7 +1600,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
29
"__id__":
30
},
"_enabled": true,
"_materials": [
...
...
@@ -1572,7 +1633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
8
"__id__": 2
9
},
"_enabled": true,
"_materials": [
...
...
@@ -1608,13 +1669,13 @@
},
"_children": [
{
"__id__": 3
3
"__id__": 3
4
},
{
"__id__": 4
0
"__id__": 4
1
},
{
"__id__": 4
4
"__id__": 4
5
}
],
"_active": true,
...
...
@@ -1672,23 +1733,23 @@
"_name": "ProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 3
2
"__id__": 3
3
},
"_children": [
{
"__id__": 3
4
"__id__": 3
5
},
{
"__id__": 3
6
"__id__": 3
7
}
],
"_active": true,
"_components": [
{
"__id__": 3
8
"__id__": 3
9
},
{
"__id__":
39
"__id__":
40
}
],
"_prefab": null,
...
...
@@ -1744,13 +1805,13 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
5
"__id__": 3
6
}
],
"_prefab": null,
...
...
@@ -1806,7 +1867,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
4
"__id__": 3
5
},
"_enabled": true,
"_materials": [
...
...
@@ -1838,13 +1899,13 @@
"_name": "ColoredProgressBar",
"_objFlags": 0,
"_parent": {
"__id__": 3
3
"__id__": 3
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 3
7
"__id__": 3
8
}
],
"_prefab": null,
...
...
@@ -1900,7 +1961,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
6
"__id__": 3
7
},
"_enabled": true,
"_materials": [
...
...
@@ -1932,7 +1993,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
4
},
"_enabled": true,
"_materials": [
...
...
@@ -1964,12 +2025,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
3
"__id__": 3
4
},
"_enabled": true,
"_N$totalLength": 442,
"_N$barSprite": {
"__id__": 3
5
"__id__": 3
6
},
"_N$mode": 0,
"_N$progress": 0,
...
...
@@ -1981,17 +2042,17 @@
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 3
2
"__id__": 3
3
},
"_children": [
{
"__id__": 4
1
"__id__": 4
2
}
],
"_active": true,
"_components": [
{
"__id__": 4
3
"__id__": 4
4
}
],
"_prefab": null,
...
...
@@ -2047,13 +2108,13 @@
"_name": "questionnumber",
"_objFlags": 0,
"_parent": {
"__id__": 4
0
"__id__": 4
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
2
"__id__": 4
3
}
],
"_prefab": null,
...
...
@@ -2109,7 +2170,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
1
"__id__": 4
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2142,7 +2203,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
0
"__id__": 4
1
},
"_enabled": true,
"_materials": [
...
...
@@ -2174,35 +2235,35 @@
"_name": "star2",
"_objFlags": 0,
"_parent": {
"__id__": 3
2
"__id__": 3
3
},
"_children": [
{
"__id__": 4
5
"__id__": 4
6
},
{
"__id__": 4
7
"__id__": 4
8
},
{
"__id__":
49
"__id__":
50
},
{
"__id__": 5
1
"__id__": 5
2
},
{
"__id__": 5
3
"__id__": 5
4
},
{
"__id__": 5
5
"__id__": 5
6
},
{
"__id__": 5
7
"__id__": 5
8
},
{
"__id__":
59
"__id__":
60
},
{
"__id__": 6
1
"__id__": 6
2
}
],
"_active": true,
...
...
@@ -2260,13 +2321,13 @@
"_name": "star2",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
6
"__id__": 4
7
}
],
"_prefab": null,
...
...
@@ -2322,7 +2383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
5
"__id__": 4
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2354,13 +2415,13 @@
"_name": "star2",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
8
"__id__": 4
9
}
],
"_prefab": null,
...
...
@@ -2416,7 +2477,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
7
"__id__": 4
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2448,13 +2509,13 @@
"_name": "star2",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
0
"__id__": 5
1
}
],
"_prefab": null,
...
...
@@ -2510,7 +2571,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
49
"__id__":
50
},
"_enabled": true,
"_materials": [
...
...
@@ -2542,13 +2603,13 @@
"_name": "group",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 5
2
"__id__": 5
3
}
],
"_prefab": null,
...
...
@@ -2604,7 +2665,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
1
"__id__": 5
2
},
"_enabled": true,
"_materials": [
...
...
@@ -2636,13 +2697,13 @@
"_name": "group",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 5
4
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2698,7 +2759,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
3
"__id__": 5
4
},
"_enabled": true,
"_materials": [
...
...
@@ -2730,13 +2791,13 @@
"_name": "group",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 5
6
"__id__": 5
7
}
],
"_prefab": null,
...
...
@@ -2792,7 +2853,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
5
"__id__": 5
6
},
"_enabled": true,
"_materials": [
...
...
@@ -2824,13 +2885,13 @@
"_name": "number",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
8
"__id__": 5
9
}
],
"_prefab": null,
...
...
@@ -2886,7 +2947,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
7
"__id__": 5
8
},
"_enabled": true,
"_materials": [
...
...
@@ -2919,13 +2980,13 @@
"_name": "number",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
0
"__id__": 6
1
}
],
"_prefab": null,
...
...
@@ -2981,7 +3042,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
59
"__id__":
60
},
"_enabled": true,
"_materials": [
...
...
@@ -3014,13 +3075,13 @@
"_name": "number",
"_objFlags": 0,
"_parent": {
"__id__": 4
4
"__id__": 4
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
2
"__id__": 6
3
}
],
"_prefab": null,
...
...
@@ -3076,7 +3137,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
1
"__id__": 6
2
},
"_enabled": true,
"_materials": [
...
...
@@ -3113,10 +3174,10 @@
},
"_children": [
{
"__id__": 6
4
"__id__": 6
5
},
{
"__id__": 6
6
"__id__": 6
7
}
],
"_active": true,
...
...
@@ -3174,13 +3235,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 6
5
"__id__": 6
6
}
],
"_prefab": null,
...
...
@@ -3236,7 +3297,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
4
"__id__": 6
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3268,16 +3329,16 @@
"_name": "mistake",
"_objFlags": 0,
"_parent": {
"__id__": 6
3
"__id__": 6
4
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 6
7
"__id__": 6
8
},
{
"__id__": 6
8
"__id__": 6
9
}
],
"_prefab": null,
...
...
@@ -3333,7 +3394,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
6
"__id__": 6
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3365,7 +3426,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
6
"__id__": 6
7
},
"_enabled": true,
"_clip": {
...
...
@@ -3388,19 +3449,19 @@
},
"_children": [
{
"__id__": 7
0
"__id__": 7
1
},
{
"__id__": 7
2
"__id__": 7
3
},
{
"__id__": 7
8
"__id__": 7
9
}
],
"_active": false,
"_components": [
{
"__id__": 8
3
"__id__": 8
4
}
],
"_prefab": null,
...
...
@@ -3456,13 +3517,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
1
"__id__": 7
2
}
],
"_prefab": null,
...
...
@@ -3518,7 +3579,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
1
},
"_enabled": true,
"_materials": [
...
...
@@ -3550,17 +3611,17 @@
"_name": "layout_bottom",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
70
},
"_children": [
{
"__id__": 7
3
"__id__": 7
4
}
],
"_active": true,
"_components": [
{
"__id__": 7
7
"__id__": 7
8
}
],
"_prefab": null,
...
...
@@ -3616,17 +3677,17 @@
"_name": "bottom",
"_objFlags": 0,
"_parent": {
"__id__": 7
2
"__id__": 7
3
},
"_children": [
{
"__id__": 7
4
"__id__": 7
5
}
],
"_active": true,
"_components": [
{
"__id__": 7
6
"__id__": 7
7
}
],
"_prefab": null,
...
...
@@ -3682,13 +3743,13 @@
"_name": "prompt",
"_objFlags": 0,
"_parent": {
"__id__": 7
3
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
5
"__id__": 7
6
}
],
"_prefab": null,
...
...
@@ -3744,7 +3805,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
4
"__id__": 7
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3777,7 +3838,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
4
},
"_enabled": true,
"_materials": [
...
...
@@ -3809,7 +3870,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
2
"__id__": 7
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -3836,14 +3897,14 @@
"_name": "layout_middle",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
70
},
"_children": [
{
"__id__":
79
"__id__":
80
},
{
"__id__": 8
1
"__id__": 8
2
}
],
"_active": true,
...
...
@@ -3901,13 +3962,13 @@
"_name": "ready",
"_objFlags": 0,
"_parent": {
"__id__": 7
8
"__id__": 7
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
0
"__id__": 8
1
}
],
"_prefab": null,
...
...
@@ -3963,7 +4024,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
79
"__id__":
80
},
"_enabled": true,
"_materials": [
...
...
@@ -3995,13 +4056,13 @@
"_name": "go",
"_objFlags": 0,
"_parent": {
"__id__": 7
8
"__id__": 7
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
2
"__id__": 8
3
}
],
"_prefab": null,
...
...
@@ -4057,7 +4118,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4089,7 +4150,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
69
"__id__":
70
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4147,23 +4208,23 @@
},
"_children": [
{
"__id__": 8
6
"__id__": 8
7
},
{
"__id__": 9
1
"__id__": 9
2
}
],
"_active": true,
"_components": [
{
"__id__": 10
6
"__id__": 10
7
},
{
"__id__": 10
7
"__id__": 10
8
}
],
"_prefab": {
"__id__": 10
8
"__id__": 10
9
},
"_opacity": 255,
"_color": {
...
...
@@ -4217,23 +4278,23 @@
"_name": "btn_back",
"_objFlags": 0,
"_parent": {
"__id__": 8
5
"__id__": 8
6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 87
},
{
"__id__": 88
},
{
"__id__": 89
},
{
"__id__": 90
}
],
"_prefab": {
"__id__": 9
0
"__id__": 9
1
},
"_opacity": 255,
"_color": {
...
...
@@ -4287,7 +4348,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
7
},
"_enabled": true,
"_materials": [
...
...
@@ -4319,7 +4380,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4387,7 +4448,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
6
"__id__": 8
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4412,7 +4473,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4425,21 +4486,21 @@
"_name": "label_title",
"_objFlags": 0,
"_parent": {
"__id__": 8
5
"__id__": 8
6
},
"_children": [
{
"__id__": 9
2
"__id__": 9
3
}
],
"_active": true,
"_components": [
{
"__id__": 10
4
"__id__": 10
5
}
],
"_prefab": {
"__id__": 10
5
"__id__": 10
6
},
"_opacity": 255,
"_color": {
...
...
@@ -4493,27 +4554,27 @@
"_name": "img_npc_voice",
"_objFlags": 0,
"_parent": {
"__id__": 9
1
"__id__": 9
2
},
"_children": [
{
"__id__": 9
3
"__id__": 9
4
},
{
"__id__": 9
6
"__id__": 9
7
},
{
"__id__":
99
"__id__":
100
}
],
"_active": true,
"_components": [
{
"__id__": 10
2
"__id__": 10
3
}
],
"_prefab": {
"__id__": 10
3
"__id__": 10
4
},
"_opacity": 255,
"_color": {
...
...
@@ -4567,17 +4628,17 @@
"_name": "p1",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
4
"__id__": 9
5
}
],
"_prefab": {
"__id__": 9
5
"__id__": 9
6
},
"_opacity": 255,
"_color": {
...
...
@@ -4631,7 +4692,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
3
"__id__": 9
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4661,7 +4722,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4674,17 +4735,17 @@
"_name": "p2",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
3
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 9
7
"__id__": 9
8
}
],
"_prefab": {
"__id__": 9
8
"__id__": 9
9
},
"_opacity": 255,
"_color": {
...
...
@@ -4738,7 +4799,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
6
"__id__": 9
7
},
"_enabled": true,
"_materials": [
...
...
@@ -4768,7 +4829,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4781,17 +4842,17 @@
"_name": "p3",
"_objFlags": 0,
"_parent": {
"__id__": 9
2
"__id__": 9
3
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
0
"__id__": 10
1
}
],
"_prefab": {
"__id__": 10
1
"__id__": 10
2
},
"_opacity": 255,
"_color": {
...
...
@@ -4845,7 +4906,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
99
"__id__":
100
},
"_enabled": true,
"_materials": [
...
...
@@ -4875,7 +4936,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4888,7 +4949,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
2
"__id__": 9
3
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -4913,7 +4974,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4926,7 +4987,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4959,7 +5020,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -4972,7 +5033,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -4999,7 +5060,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
6
},
"_enabled": true,
"_id": "f7dxVJqg1E45KECTQA4bO5"
...
...
@@ -5007,7 +5068,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
5
"__id__": 8
6
},
"asset": {
"__uuid__": "0b87ca13-07e1-4237-ab3b-7f27c69deb2d"
...
...
@@ -5024,20 +5085,20 @@
},
"_children": [
{
"__id__": 11
0
"__id__": 11
1
},
{
"__id__": 12
4
"__id__": 12
5
}
],
"_active": true,
"_components": [
{
"__id__": 1
29
"__id__": 1
30
}
],
"_prefab": {
"__id__": 13
0
"__id__": 13
1
},
"_opacity": 255,
"_color": {
...
...
@@ -5091,26 +5152,26 @@
"_name": "layout_center",
"_objFlags": 0,
"_parent": {
"__id__": 1
09
"__id__": 1
10
},
"_children": [
{
"__id__": 11
1
"__id__": 11
2
},
{
"__id__": 11
4
"__id__": 11
5
},
{
"__id__": 11
7
"__id__": 11
8
},
{
"__id__": 12
0
"__id__": 12
1
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 12
3
"__id__": 12
4
},
"_opacity": 255,
"_color": {
...
...
@@ -5164,17 +5225,17 @@
"_name": "bg_gray",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
2
"__id__": 11
3
}
],
"_prefab": {
"__id__": 11
3
"__id__": 11
4
},
"_opacity": 102,
"_color": {
...
...
@@ -5228,7 +5289,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
1
"__id__": 11
2
},
"_enabled": true,
"_materials": [
...
...
@@ -5258,7 +5319,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5271,17 +5332,17 @@
"_name": "aniNode1",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 11
5
"__id__": 11
6
}
],
"_prefab": {
"__id__": 11
6
"__id__": 11
7
},
"_opacity": 255,
"_color": {
...
...
@@ -5335,7 +5396,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
4
"__id__": 11
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5373,7 +5434,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5386,17 +5447,17 @@
"_name": "aniNode2",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 11
8
"__id__": 11
9
}
],
"_prefab": {
"__id__": 1
19
"__id__": 1
20
},
"_opacity": 255,
"_color": {
...
...
@@ -5450,7 +5511,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
7
"__id__": 11
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5486,7 +5547,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5499,17 +5560,17 @@
"_name": "aniNode3",
"_objFlags": 0,
"_parent": {
"__id__": 11
0
"__id__": 11
1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 12
1
"__id__": 12
2
}
],
"_prefab": {
"__id__": 12
2
"__id__": 12
3
},
"_opacity": 255,
"_color": {
...
...
@@ -5563,7 +5624,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
0
"__id__": 12
1
},
"_enabled": true,
"_materials": [
...
...
@@ -5601,7 +5662,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5612,7 +5673,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5625,17 +5686,17 @@
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 1
09
"__id__": 1
10
},
"_children": [
{
"__id__": 12
5
"__id__": 12
6
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 12
8
"__id__": 12
9
},
"_opacity": 255,
"_color": {
...
...
@@ -5689,17 +5750,17 @@
"_name": "coin",
"_objFlags": 0,
"_parent": {
"__id__": 12
4
"__id__": 12
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
6
"__id__": 12
7
}
],
"_prefab": {
"__id__": 12
7
"__id__": 12
8
},
"_opacity": 255,
"_color": {
...
...
@@ -5753,7 +5814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
5
"__id__": 12
6
},
"_enabled": true,
"_clip": {
...
...
@@ -5770,7 +5831,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5781,7 +5842,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5794,7 +5855,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
09
"__id__": 1
10
},
"_enabled": true,
"_id": "c3dOkfp8JOEIaSkCGGz9Us"
...
...
@@ -5802,7 +5863,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
09
"__id__": 1
10
},
"asset": {
"__uuid__": "a9b135f6-de46-4257-8be2-55dc863ce747"
...
...
@@ -5819,20 +5880,20 @@
},
"_children": [
{
"__id__": 13
2
"__id__": 13
3
},
{
"__id__": 16
3
"__id__": 16
4
}
],
"_active": true,
"_components": [
{
"__id__": 16
8
"__id__": 16
9
}
],
"_prefab": {
"__id__": 1
69
"__id__": 1
70
},
"_opacity": 255,
"_color": {
...
...
@@ -5886,35 +5947,35 @@
"_name": "layer_center",
"_objFlags": 0,
"_parent": {
"__id__": 13
1
"__id__": 13
2
},
"_children": [
{
"__id__": 13
3
"__id__": 13
4
},
{
"__id__": 13
6
"__id__": 13
7
},
{
"__id__": 13
8
"__id__": 13
9
},
{
"__id__": 14
1
"__id__": 14
2
},
{
"__id__": 14
4
"__id__": 14
5
},
{
"__id__": 14
7
"__id__": 14
8
},
{
"__id__": 15
0
"__id__": 15
1
}
],
"_active": false,
"_components": [],
"_prefab": {
"__id__": 16
2
"__id__": 16
3
},
"_opacity": 255,
"_color": {
...
...
@@ -5968,17 +6029,17 @@
"_name": "gray_cover",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
4
"__id__": 13
5
}
],
"_prefab": {
"__id__": 13
5
"__id__": 13
6
},
"_opacity": 102,
"_color": {
...
...
@@ -6032,7 +6093,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
3
"__id__": 13
4
},
"_enabled": true,
"_materials": [
...
...
@@ -6062,7 +6123,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6075,13 +6136,13 @@
"_name": "layer_middle",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 13
7
"__id__": 13
8
},
"_opacity": 255,
"_color": {
...
...
@@ -6133,7 +6194,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6146,17 +6207,17 @@
"_name": "replay_btn",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
39
"__id__": 1
40
}
],
"_prefab": {
"__id__": 14
0
"__id__": 14
1
},
"_opacity": 255,
"_color": {
...
...
@@ -6210,7 +6271,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
8
"__id__": 13
9
},
"_enabled": true,
"_materials": [
...
...
@@ -6240,7 +6301,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6253,17 +6314,17 @@
"_name": "bg_light",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
2
"__id__": 14
3
}
],
"_prefab": {
"__id__": 14
3
"__id__": 14
4
},
"_opacity": 255,
"_color": {
...
...
@@ -6317,7 +6378,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
1
"__id__": 14
2
},
"_enabled": true,
"_materials": [
...
...
@@ -6347,7 +6408,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6360,17 +6421,17 @@
"_name": "finish_cat",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
5
"__id__": 14
6
}
],
"_prefab": {
"__id__": 14
6
"__id__": 14
7
},
"_opacity": 255,
"_color": {
...
...
@@ -6424,7 +6485,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
4
"__id__": 14
5
},
"_enabled": true,
"_materials": [
...
...
@@ -6462,7 +6523,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6475,17 +6536,17 @@
"_name": "next_btn",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
8
"__id__": 14
9
}
],
"_prefab": {
"__id__": 1
49
"__id__": 1
50
},
"_opacity": 255,
"_color": {
...
...
@@ -6539,7 +6600,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
7
"__id__": 14
8
},
"_enabled": true,
"_materials": [
...
...
@@ -6569,7 +6630,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6582,27 +6643,27 @@
"_name": "finish_box",
"_objFlags": 0,
"_parent": {
"__id__": 13
2
"__id__": 13
3
},
"_children": [
{
"__id__": 15
1
"__id__": 15
2
},
{
"__id__": 15
4
"__id__": 15
5
},
{
"__id__": 15
7
"__id__": 15
8
}
],
"_active": true,
"_components": [
{
"__id__": 16
0
"__id__": 16
1
}
],
"_prefab": {
"__id__": 16
1
"__id__": 16
2
},
"_opacity": 255,
"_color": {
...
...
@@ -6656,17 +6717,17 @@
"_name": "result_text",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
2
"__id__": 15
3
}
],
"_prefab": {
"__id__": 15
3
"__id__": 15
4
},
"_opacity": 255,
"_color": {
...
...
@@ -6720,7 +6781,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
1
"__id__": 15
2
},
"_enabled": true,
"_materials": [
...
...
@@ -6751,7 +6812,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6764,17 +6825,17 @@
"_name": "coin",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
5
"__id__": 15
6
}
],
"_prefab": {
"__id__": 15
6
"__id__": 15
7
},
"_opacity": 255,
"_color": {
...
...
@@ -6828,7 +6889,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
4
"__id__": 15
5
},
"_enabled": true,
"_materials": [
...
...
@@ -6858,7 +6919,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6871,17 +6932,17 @@
"_name": "coin_num",
"_objFlags": 0,
"_parent": {
"__id__": 15
0
"__id__": 15
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
8
"__id__": 15
9
}
],
"_prefab": {
"__id__": 1
59
"__id__": 1
60
},
"_opacity": 255,
"_color": {
...
...
@@ -6935,7 +6996,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
7
"__id__": 15
8
},
"_enabled": true,
"_materials": [
...
...
@@ -6966,7 +7027,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -6979,7 +7040,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
1
},
"_enabled": true,
"_materials": [
...
...
@@ -7009,7 +7070,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -7020,7 +7081,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -7033,17 +7094,17 @@
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 13
1
"__id__": 13
2
},
"_children": [
{
"__id__": 16
4
"__id__": 16
5
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 16
7
"__id__": 16
8
},
"_opacity": 255,
"_color": {
...
...
@@ -7097,17 +7158,17 @@
"_name": "ending",
"_objFlags": 0,
"_parent": {
"__id__": 16
3
"__id__": 16
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
5
"__id__": 16
6
}
],
"_prefab": {
"__id__": 16
6
"__id__": 16
7
},
"_opacity": 255,
"_color": {
...
...
@@ -7161,7 +7222,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
4
"__id__": 16
5
},
"_enabled": true,
"_clip": {
...
...
@@ -7178,7 +7239,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -7189,7 +7250,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -7202,7 +7263,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
1
"__id__": 13
2
},
"_enabled": true,
"_id": "0eb63qoGNGaK7IkpnARXZE"
...
...
@@ -7210,7 +7271,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 13
1
"__id__": 13
2
},
"asset": {
"__uuid__": "8944c192-3675-466f-9f94-8f824c68e822"
...
...
@@ -7227,13 +7288,13 @@
},
"_children": [
{
"__id__": 17
1
"__id__": 17
2
},
{
"__id__": 17
4
"__id__": 17
5
},
{
"__id__": 17
7
"__id__": 17
8
}
],
"_active": false,
...
...
@@ -7291,11 +7352,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
1
},
"_children": [
{
"__id__": 17
2
"__id__": 17
3
}
],
"_active": false,
...
...
@@ -7353,13 +7414,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 17
1
"__id__": 17
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
3
"__id__": 17
4
}
],
"_prefab": null,
...
...
@@ -7415,7 +7476,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
2
"__id__": 17
3
},
"_enabled": true,
"_materials": [
...
...
@@ -7450,11 +7511,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
1
},
"_children": [
{
"__id__": 17
5
"__id__": 17
6
}
],
"_active": false,
...
...
@@ -7512,13 +7573,13 @@
"_name": "icon",
"_objFlags": 0,
"_parent": {
"__id__": 17
4
"__id__": 17
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
6
"__id__": 17
7
}
],
"_prefab": null,
...
...
@@ -7574,7 +7635,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
5
"__id__": 17
6
},
"_enabled": true,
"_materials": [
...
...
@@ -7606,29 +7667,29 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 17
0
"__id__": 17
1
},
"_children": [
{
"__id__": 17
8
"__id__": 17
9
},
{
"__id__": 18
0
"__id__": 18
1
},
{
"__id__": 18
2
"__id__": 18
3
},
{
"__id__": 18
4
"__id__": 18
5
},
{
"__id__": 18
6
"__id__": 18
7
},
{
"__id__": 18
8
"__id__": 18
9
},
{
"__id__": 19
0
"__id__": 19
1
}
],
"_active": false,
...
...
@@ -7686,13 +7747,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
79
"__id__": 1
80
}
],
"_prefab": null,
...
...
@@ -7748,7 +7809,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
8
"__id__": 17
9
},
"_enabled": true,
"_clip": {
...
...
@@ -7767,13 +7828,13 @@
"_name": "mistake",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
1
"__id__": 18
2
}
],
"_prefab": null,
...
...
@@ -7829,7 +7890,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
0
"__id__": 18
1
},
"_enabled": true,
"_clip": {
...
...
@@ -7848,13 +7909,13 @@
"_name": "showCard",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
3
"__id__": 18
4
}
],
"_prefab": null,
...
...
@@ -7910,7 +7971,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
2
"__id__": 18
3
},
"_enabled": true,
"_clip": {
...
...
@@ -7929,13 +7990,13 @@
"_name": "start2Tiger",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
5
"__id__": 18
6
}
],
"_prefab": null,
...
...
@@ -7991,7 +8052,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
4
"__id__": 18
5
},
"_enabled": true,
"_clip": {
...
...
@@ -8010,13 +8071,13 @@
"_name": "please5speak",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
7
"__id__": 18
8
}
],
"_prefab": null,
...
...
@@ -8072,7 +8133,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
6
"__id__": 18
7
},
"_enabled": true,
"_clip": {
...
...
@@ -8091,13 +8152,13 @@
"_name": "readyGo",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
89
"__id__": 1
90
}
],
"_prefab": null,
...
...
@@ -8153,7 +8214,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
8
"__id__": 18
9
},
"_enabled": true,
"_clip": {
...
...
@@ -8172,13 +8233,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 17
7
"__id__": 17
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
1
"__id__": 19
2
}
],
"_prefab": null,
...
...
@@ -8234,7 +8295,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
0
"__id__": 19
1
},
"_enabled": true,
"_clip": {
...
...
assets/hy08_caici/scene/hy08_caici.ts
View file @
1a487a13
...
...
@@ -46,13 +46,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
_cantouch
=
null
;
initData
()
{
// 所有全局变量 默认都是null
this
.
_cantouch
=
true
;
let
data
=
this
.
data
;
this
.
data
=
this
.
data
.
questions
[
0
]
}
private
topQuestion
:
cc
.
Node
private
item_question
:
cc
.
Node
//题目id
private
currentId
:
number
//总时间时间
...
...
@@ -61,14 +55,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
right
:
number
//进度条成都
private
lengthProgress
:
number
// 游戏页面
private
layer_game
:
cc
.
Node
;
// 准备开始
private
layout_begin
:
cc
.
Node
;
initData
()
{
// 所有全局变量 默认都是null
this
.
_cantouch
=
true
;
let
data
=
this
.
data
;
this
.
data
=
this
.
data
.
questions
[
0
]
}
initView
()
{
// 取对象
/* this.
topQuestion = pg.view.find(this, 'topQ
uestion'); */
/* this.
item_question = pg.view.find(this, 'item_q
uestion'); */
this
.
layer_game
=
pg
.
view
.
find
(
this
,
'
layer_game
'
);
this
.
layout_begin
=
pg
.
view
.
find
(
this
.
layer_game
,
'
layout_begin
'
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
layer_game
,
'
countdown/countdown1
'
),
true
);
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
.
layer_game
,
'
countdown/countdown2
'
),
false
);
}
initListener
()
{
...
...
@@ -76,13 +79,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
getCurrent
()
{
return
this
.
data
.
options
[
this
.
currentId
];
}
async
initGame
()
{
this
.
showCamera
();
await
this
.
showBegin
()
this
.
hideBegin
();
//
this.showCamera();
//
await this.showBegin()
//
this.hideBegin();
this
.
startQuestion
();
}
gameOver
()
{
this
.
state
=
State
.
Over
;
}
showCamera
()
{
courseware
&&
courseware
.
openRecognitionCamera
({
x
:
0
,
...
...
@@ -104,7 +113,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
aniBottomEnter
().
then
(()
=>
{
pg
.
hw
.
playAudio
(
'
readyGo
'
,
false
,
()
=>
{
});
cc
.
tween
(
ready
).
to
(
1
,
{
y
:
-
20
}).
to
(
0.2
,
{
y
:
0
}).
delay
(
1
).
call
(()
=>
{
cc
.
tween
(
ready
).
to
(
1
,
{
y
:
-
20
}).
to
(
0.2
,
{
y
:
0
}).
delay
(
0.3
).
call
(()
=>
{
ready
.
active
=
false
;
}).
start
();
cc
.
tween
(
go
).
delay
(
1
).
to
(
1
,
{
y
:
-
20
}).
to
(
0.2
,
{
y
:
0
}).
delay
(
0.5
).
call
(()
=>
{
...
...
@@ -138,29 +147,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
currentTime
=
this
.
time
*
1000
;
this
.
lengthProgress
=
0
this
.
right
=
0
//预加载第一题
this
.
firstOptions
()
//题目数分配
this
.
updateProgress
()
}
//预加载第一题
firstOptions
()
{
let
topQuestion
=
pg
.
view
.
find
(
this
,
'
layer_game/topQuestion
'
);
let
countdown
=
pg
.
view
.
find
(
this
,
'
layer_game/countdown
'
);
let
countdown1
=
pg
.
view
.
find
(
countdown
,
'
countdown1
'
);
let
countdown2
=
pg
.
view
.
find
(
countdown
,
'
countdown2
'
);
countdown1
.
active
=
true
countdown2
.
active
=
false
this
.
startCountDown
=
true
;
this
.
gameStart
=
true
;
this
.
state
=
State
.
Recording
;
this
.
updateTitleOptions
();
this
.
updateQuestion
();
this
.
updateProgress
();
}
gameOver
()
{
this
.
state
=
State
.
Over
;
//题目
updateQuestion
()
{
let
item_question
=
pg
.
view
.
find
(
this
,
'
layer_game/item_question
'
);
let
data
=
this
.
getCurrent
();
pg
.
view
.
setNetImg
(
pg
.
view
.
find
(
item_question
,
"
img
"
),
data
.
image
,
{
w
:
700
,
h
:
360
})
pg
.
view
.
setString
(
pg
.
view
.
find
(
item_question
,
"
text
"
),
data
.
text
)
}
private
startCountDown
:
boolean
;
//------------------------------Loop----------------------------------
private
gameStart
:
boolean
;
private
state
:
number
;
private
waitTime
:
number
;
update
(
dt
)
{
if
(
this
.
startCountDown
)
{
if
(
this
.
gameStart
)
{
var
nowTime
=
Date
.
now
();
if
(
!
this
.
lastTime
)
this
.
lastTime
=
nowTime
;
let
subTime
=
nowTime
-
this
.
lastTime
;
...
...
@@ -171,20 +176,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 游戏结束
}
this
.
updateClock
(
subTime
);
this
.
updateTime
(
subTime
);
this
.
updateState
(
subTime
);
}
}
private
state
:
number
;
private
waitTime
:
number
;
updateTime
(
dt
)
{
updateState
(
dt
)
{
this
.
waitTime
-=
dt
;
if
(
this
.
waitTime
>
0
)
return
;
switch
(
this
.
state
)
{
case
State
.
Recording
:
this
.
state
=
State
.
RecordEnd
;
this
.
waitTime
=
3
*
1000
;
//3秒录音
this
.
startRecord
(
this
.
getCurrent
Options
().
text
);
this
.
startRecord
(
this
.
getCurrent
().
text
);
break
;
case
State
.
RecordEnd
:
this
.
state
=
State
.
RecordShow
;
...
...
@@ -195,66 +197,60 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
state
=
State
.
Recording
;
this
.
hideAnswer
();
this
.
currentId
++
;
if
(
!
this
.
getCurrent
Options
())
{
if
(
!
this
.
getCurrent
())
{
this
.
gameOver
();
return
;
}
this
.
update
TitleOptions
()
this
.
update
Question
()
break
;
}
}
//------------------------------Answer----------------------------------
getCurrentOptions
()
{
return
this
.
data
.
options
[
this
.
currentId
];
//用户回答结果
checkRight
(
score
)
{
let
isRight
=
score
>
40
;
let
item_question
=
pg
.
view
.
find
(
this
,
'
layer_game/item_question
'
);
/*
* answer 获取的用户答案
*/
//判断对错
let
row
=
pg
.
view
.
find
(
this
,
'
layer_game/row
'
);
item_question
.
children
[
2
].
active
=
true
//正确
if
(
isRight
)
{
//正确后执行函数
this
.
onAnswerRight
(
row
)
}
else
{
this
.
onAnswerError
(
row
)
}
}
//回答正确后回调
onAnswerRight
(
row
)
{
//答对题目数
this
.
right
+=
1
row
.
children
[
0
].
active
=
true
this
.
updateProgressPercent
();
}
onAnswerError
(
row
)
{
//错误音频
pg
.
audio
.
playAudioByUrl
(
this
.
getCurrent
().
audio
);
//错误
row
.
children
[
1
].
active
=
true
}
hideAnswer
()
{
let
topQuestion
=
pg
.
view
.
find
(
this
,
'
layer_game/topQ
uestion
'
);
let
item_question
=
pg
.
view
.
find
(
this
,
'
layer_game/item_q
uestion
'
);
let
row
=
pg
.
view
.
find
(
this
,
'
layer_game/row
'
);
let
right
=
pg
.
view
.
find
(
row
,
'
right
'
);
let
mistake
=
pg
.
view
.
find
(
row
,
'
mistake
'
);
let
answer
=
pg
.
view
.
find
(
topQuestion
,
'
answer
'
);
let
text
=
pg
.
view
.
find
(
item_question
,
'
text
'
);
right
.
active
=
false
mistake
.
active
=
false
answer
.
active
=
false
}
//题目
updateTitleOptions
()
{
let
topQuestion
=
pg
.
view
.
find
(
this
,
'
layer_game/topQuestion
'
);
pg
.
view
.
setNetImg
(
topQuestion
.
children
[
1
],
this
.
getCurrentOptions
().
image
,
{
w
:
700
,
h
:
360
})
pg
.
view
.
setString
(
topQuestion
.
children
[
2
],
this
.
getCurrentOptions
().
text
)
}
// 倒计时完成
private
lastTime
:
number
;
updateClock
(
dt
)
{
let
time
=
Math
.
floor
(
this
.
currentTime
/
100
);
let
n1
=
Math
.
floor
(
time
/
100
)
>
0
?
Math
.
floor
(
time
/
100
)
:
0
;
time
-=
(
n1
*
100
);
let
n2
=
Math
.
floor
(
time
/
10
)
>
0
?
Math
.
floor
(
time
/
10
)
:
0
;
time
-=
(
n2
*
10
);
let
n3
=
Math
.
floor
(
time
/
1
)
>
0
?
Math
.
floor
(
time
/
1
)
:
0
;
let
countStr
=
`
${
n1
}${
n2
}
.
${
n3
}
`
;
let
countdown
=
pg
.
view
.
find
(
this
,
'
layer_game/countdown
'
);
let
countdown1
=
pg
.
view
.
find
(
countdown
,
'
countdown1
'
);
let
countdown2
=
pg
.
view
.
find
(
countdown
,
'
countdown2
'
);
//更换时间及闹钟图片
countdown1
.
active
=
(
Number
(
countStr
)
>=
10
)
countdown2
.
active
=
!
(
Number
(
countStr
)
>=
10
)
pg
.
view
.
setString
(
countdown1
.
children
[
0
],
countStr
)
pg
.
view
.
setString
(
countdown2
.
children
[
0
],
countStr
)
}
//题目数分配
updateProgress
()
{
let
layout_progress
=
pg
.
view
.
find
(
this
,
'
layer_game/layout_progress
'
)
var
questionLenght
=
this
.
data
.
options
.
length
//星星数
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
layout_progress
.
children
[
2
].
children
[
5
+
i
].
active
=
true
pg
.
view
.
setString
(
layout_progress
.
children
[
2
].
children
[
5
+
i
],
Math
.
round
(
questionLenght
/
3
*
i
))
}
text
.
active
=
false
}
//------------------------------Record----------------------------------
startRecord
(
letter
)
{
courseware
&&
courseware
.
startTest
(
letter
);
//开始录音
}
...
...
@@ -287,58 +283,65 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
recrodEnd
(
data
)
{
let
score
=
data
.
result
.
overall
;
this
.
whetherAnswer
(
score
>
40
)
this
.
checkRight
(
score
)
}
//用户回答结果
whetherAnswer
(
answer
)
{
let
topQuestion
=
pg
.
view
.
find
(
this
,
'
layer_game/topQuestion
'
);
/*
* answer 获取的用户答案
*/
//判断对错
let
row
=
pg
.
view
.
find
(
this
,
'
layer_game/row
'
);
topQuestion
.
children
[
2
].
active
=
true
//正确
if
(
answer
)
{
//正确后执行函数
this
.
rightQuestions
(
row
)
}
else
{
//错误音频
pg
.
audio
.
playAudioByUrl
(
this
.
getCurrentOptions
().
audio
);
//错误
row
.
children
[
1
].
active
=
true
}
//------------------------------Progress----------------------------------
// 倒计时完成
private
lastTime
:
number
;
updateClock
(
dt
)
{
let
time
=
Math
.
floor
(
this
.
currentTime
/
100
);
let
n1
=
Math
.
floor
(
time
/
100
)
>
0
?
Math
.
floor
(
time
/
100
)
:
0
;
time
-=
(
n1
*
100
);
let
n2
=
Math
.
floor
(
time
/
10
)
>
0
?
Math
.
floor
(
time
/
10
)
:
0
;
time
-=
(
n2
*
10
);
let
n3
=
Math
.
floor
(
time
/
1
)
>
0
?
Math
.
floor
(
time
/
1
)
:
0
;
let
countStr
=
`
${
n1
}${
n2
}
.
${
n3
}
`
;
let
countdown
=
pg
.
view
.
find
(
this
,
'
layer_game/countdown
'
);
let
countdown1
=
pg
.
view
.
find
(
countdown
,
'
countdown1
'
);
let
countdown2
=
pg
.
view
.
find
(
countdown
,
'
countdown2
'
);
//更换时间及闹钟图片
countdown1
.
active
=
(
Number
(
countStr
)
>=
10
)
countdown2
.
active
=
!
(
Number
(
countStr
)
>=
10
)
pg
.
view
.
setString
(
countdown1
.
children
[
0
],
countStr
)
pg
.
view
.
setString
(
countdown2
.
children
[
0
],
countStr
)
}
//回答正确后回调
rightQuestions
(
row
)
{
updateProgressPercent
()
{
//获取layout_progress节点
let
layout_progress
=
pg
.
view
.
find
(
this
,
'
layer_game/layout_progress
'
)
var
progressParent
=
layout_progress
.
children
[
0
].
getComponent
(
cc
.
layout_progress
)
//获取题目数量
let
lengthQ
=
this
.
data
.
options
.
length
//答对题目数
this
.
right
+=
1
var
progressParent
=
layout_progress
.
children
[
0
].
getComponent
(
cc
.
ProgressBar
)
pg
.
view
.
setString
(
layout_progress
.
children
[
1
].
children
[
0
],
this
.
right
)
//星星切换
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
if
(
this
.
right
==
Math
.
round
(
lengthQ
/
3
*
i
))
{
if
(
this
.
right
==
Math
.
round
(
this
.
data
.
options
.
length
/
3
*
i
))
{
layout_progress
.
children
[
2
].
children
[
i
-
1
].
active
=
false
layout_progress
.
children
[
2
].
children
[
i
+
2
].
active
=
true
}
if
(
this
.
right
==
Math
.
round
(
lengthQ
/
3
*
2
))
layout_progress
.
children
[
0
].
children
[
1
].
active
=
true
if
(
this
.
right
==
Math
.
round
(
this
.
data
.
options
.
length
/
3
*
2
))
layout_progress
.
children
[
0
].
children
[
1
].
active
=
true
}
//进度条
this
.
lengthProgress
+=
1
/
(
lengthQ
)
this
.
lengthProgress
+=
1
/
this
.
data
.
options
.
length
progressParent
.
progress
=
this
.
lengthProgress
//彩色进度条同步进度条宽度
layout_progress
.
children
[
0
].
children
[
1
].
width
=
layout_progress
.
children
[
0
].
children
[
0
].
width
row
.
children
[
0
].
active
=
true
}
//题目数分配
updateProgress
()
{
let
layout_progress
=
pg
.
view
.
find
(
this
,
'
layer_game/layout_progress
'
)
var
questionLenght
=
this
.
data
.
options
.
length
//星星数
for
(
let
i
=
1
;
i
<=
3
;
i
++
)
{
layout_progress
.
children
[
2
].
children
[
5
+
i
].
active
=
true
pg
.
view
.
setString
(
layout_progress
.
children
[
2
].
children
[
5
+
i
],
Math
.
round
(
questionLenght
/
3
*
i
))
}
}
playLocalAudio
(
audioName
)
{
const
audio
=
cc
.
find
(
`Canvas/res/audio/
${
audioName
}
`
).
getComponent
(
cc
.
AudioSource
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment