Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NS03
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
NS03
Commits
1cbf5ebb
Commit
1cbf5ebb
authored
Jan 02, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改点击区域
parent
5880e010
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
311 additions
and
203 deletions
+311
-203
NS03.fire
assets/NS03/scene/NS03.fire
+291
-194
item.ts
assets/NS03/scene/item.ts
+2
-1
speak.ts
assets/NS03/scene/speak.ts
+18
-8
No files found.
assets/NS03/scene/NS03.fire
View file @
1cbf5ebb
...
...
@@ -90,31 +90,31 @@
"__id__": 78
},
{
"__id__": 10
0
"__id__": 10
2
},
{
"__id__": 10
5
"__id__": 10
7
},
{
"__id__": 1
18
"__id__": 1
20
},
{
"__id__": 1
28
"__id__": 1
30
},
{
"__id__": 14
3
"__id__": 14
5
}
],
"_active": true,
"_components": [
{
"__id__": 15
6
"__id__": 15
8
},
{
"__id__": 15
7
"__id__": 15
9
},
{
"__id__": 1
58
"__id__": 1
60
}
],
"_prefab": null,
...
...
@@ -3668,12 +3668,15 @@
"_children": [
{
"__id__": 79
},
{
"__id__": 98
}
],
"_active": true,
"_components": [
{
"__id__":
99
"__id__":
101
}
],
"_prefab": null,
...
...
@@ -3739,7 +3742,7 @@
"_active": true,
"_components": [
{
"__id__": 9
8
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -3802,16 +3805,16 @@
"__id__": 81
},
{
"__id__":
90
"__id__":
89
},
{
"__id__": 9
2
"__id__": 9
1
},
{
"__id__": 9
4
"__id__": 9
3
},
{
"__id__": 9
6
"__id__": 9
5
}
],
"_active": true,
...
...
@@ -3886,9 +3889,6 @@
"_components": [
{
"__id__": 88
},
{
"__id__": 89
}
],
"_prefab": null,
...
...
@@ -4262,76 +4262,6 @@
"_atlas": null,
"_id": "d0IFVHCohFP5g61P5nrCr+"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
},
"_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__": 81
},
"_id": "06F9d1yPtN3bOQmJHBjCJV"
},
{
"__type__": "cc.Node",
"_name": "penguin_1",
...
...
@@ -4343,7 +4273,7 @@
"_active": true,
"_components": [
{
"__id__": 9
1
"__id__": 9
0
}
],
"_prefab": null,
...
...
@@ -4399,7 +4329,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
90
"__id__":
89
},
"_enabled": true,
"_materials": [
...
...
@@ -4437,7 +4367,7 @@
"_active": false,
"_components": [
{
"__id__": 9
3
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -4493,7 +4423,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
2
"__id__": 9
1
},
"_enabled": true,
"_materials": [
...
...
@@ -4531,7 +4461,7 @@
"_active": true,
"_components": [
{
"__id__": 9
5
"__id__": 9
4
}
],
"_prefab": null,
...
...
@@ -4587,7 +4517,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4625,7 +4555,7 @@
"_active": true,
"_components": [
{
"__id__": 9
7
"__id__": 9
6
}
],
"_prefab": null,
...
...
@@ -4681,7 +4611,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
6
"__id__": 9
5
},
"_enabled": true,
"_materials": [
...
...
@@ -4730,6 +4660,173 @@
"_N$inverted": true,
"_id": "aehoJUOQ1EMaWUwBTLQr0H"
},
{
"__type__": "cc.Node",
"_name": "btn_touch",
"_objFlags": 0,
"_parent": {
"__id__": 78
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 99
},
{
"__id__": 100
}
],
"_prefab": null,
"_opacity": 1,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 500
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-13.652,
85.752,
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": "5emQylAjFCxJZLPgj8oRar"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
},
"_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__": 98
},
"_id": "682usZC1VIE7xaY89ZNuFi"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c2uzk5tMtCGLDLPuZlwl3E"
},
{
"__type__": "4c474+R2whNQa8Tx3bHrnSo",
"_name": "",
...
...
@@ -4749,10 +4846,10 @@
},
"_children": [
{
"__id__": 10
1
"__id__": 10
3
},
{
"__id__": 10
3
"__id__": 10
5
}
],
"_active": true,
...
...
@@ -4810,13 +4907,13 @@
"_name": "bg_win",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
2
"__id__": 10
4
}
],
"_prefab": null,
...
...
@@ -4872,7 +4969,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
1
"__id__": 10
3
},
"_enabled": true,
"_materials": [
...
...
@@ -4904,13 +5001,13 @@
"_name": "bg_lose",
"_objFlags": 0,
"_parent": {
"__id__": 10
0
"__id__": 10
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
4
"__id__": 10
6
}
],
"_prefab": null,
...
...
@@ -4966,7 +5063,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
3
"__id__": 10
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5001,9 +5098,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 106
},
{
"__id__": 108
},
...
...
@@ -5015,15 +5109,18 @@
},
{
"__id__": 114
},
{
"__id__": 116
}
],
"_active": true,
"_components": [
{
"__id__": 11
6
"__id__": 11
8
},
{
"__id__": 11
7
"__id__": 11
9
}
],
"_prefab": null,
...
...
@@ -5079,13 +5176,13 @@
"_name": "speak_ske",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 10
7
"__id__": 10
9
}
],
"_prefab": null,
...
...
@@ -5141,7 +5238,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
6
"__id__": 10
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5181,13 +5278,13 @@
"_name": "btn_audio_stop",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
09
"__id__": 1
11
}
],
"_prefab": null,
...
...
@@ -5243,7 +5340,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
08
"__id__": 1
10
},
"_enabled": true,
"_materials": [
...
...
@@ -5275,13 +5372,13 @@
"_name": "btn_audio_start",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 11
1
"__id__": 11
3
}
],
"_prefab": null,
...
...
@@ -5337,7 +5434,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
0
"__id__": 11
2
},
"_enabled": true,
"_materials": [
...
...
@@ -5369,13 +5466,13 @@
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 11
3
"__id__": 11
5
}
],
"_prefab": null,
...
...
@@ -5431,7 +5528,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
2
"__id__": 11
4
},
"_enabled": true,
"_materials": [
...
...
@@ -5463,13 +5560,13 @@
"_name": "bg_tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 10
5
"__id__": 10
7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 11
5
"__id__": 11
7
}
],
"_prefab": null,
...
...
@@ -5525,7 +5622,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
4
"__id__": 11
6
},
"_enabled": true,
"_materials": [
...
...
@@ -5557,7 +5654,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
7
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -5584,7 +5681,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
5
"__id__": 10
7
},
"_enabled": true,
"label": null,
...
...
@@ -5599,26 +5696,26 @@
"__id__": 2
},
"_children": [
{
"__id__": 119
},
{
"__id__": 121
},
{
"__id__": 123
},
{
"__id__": 125
}
],
"_active": true,
"_components": [
{
"__id__": 12
5
"__id__": 12
7
},
{
"__id__": 12
6
"__id__": 12
8
},
{
"__id__": 12
7
"__id__": 12
9
}
],
"_prefab": null,
...
...
@@ -5674,13 +5771,13 @@
"_name": "btn_laba2",
"_objFlags": 0,
"_parent": {
"__id__": 1
18
"__id__": 1
20
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 12
0
"__id__": 12
2
}
],
"_prefab": null,
...
...
@@ -5736,7 +5833,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
21
},
"_enabled": true,
"_materials": [
...
...
@@ -5768,13 +5865,13 @@
"_name": "btn_laba3",
"_objFlags": 0,
"_parent": {
"__id__": 1
18
"__id__": 1
20
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 12
2
"__id__": 12
4
}
],
"_prefab": null,
...
...
@@ -5830,7 +5927,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
1
"__id__": 12
3
},
"_enabled": true,
"_materials": [
...
...
@@ -5862,13 +5959,13 @@
"_name": "btn_laba4",
"_objFlags": 0,
"_parent": {
"__id__": 1
18
"__id__": 1
20
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 12
4
"__id__": 12
6
}
],
"_prefab": null,
...
...
@@ -5924,7 +6021,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
3
"__id__": 12
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5956,7 +6053,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
18
"__id__": 1
20
},
"_enabled": true,
"_materials": [
...
...
@@ -5988,7 +6085,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
18
"__id__": 1
20
},
"_enabled": true,
"_id": "35v9fQwSJBlrQ+PHaOFzn7"
...
...
@@ -5998,7 +6095,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
18
"__id__": 1
20
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6059,7 +6156,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 1
18
"__id__": 1
20
},
"_id": "9atp9HiRdMKLVwYAMBN7B3"
},
...
...
@@ -6072,25 +6169,25 @@
},
"_children": [
{
"__id__": 1
29
"__id__": 1
31
},
{
"__id__": 13
2
"__id__": 13
4
},
{
"__id__": 13
5
"__id__": 13
7
},
{
"__id__": 1
38
"__id__": 1
40
}
],
"_active": true,
"_components": [
{
"__id__": 14
1
"__id__": 14
3
},
{
"__id__": 14
2
"__id__": 14
4
}
],
"_prefab": null,
...
...
@@ -6146,16 +6243,16 @@
"_name": "panel_gray",
"_objFlags": 0,
"_parent": {
"__id__": 1
28
"__id__": 1
30
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
0
"__id__": 13
2
},
{
"__id__": 13
1
"__id__": 13
3
}
],
"_prefab": null,
...
...
@@ -6211,7 +6308,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
31
},
"_enabled": true,
"_materials": [
...
...
@@ -6243,7 +6340,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
29
"__id__": 1
31
},
"_enabled": true,
"_id": "62GJ00ACNO+oRV9v3v/AoP"
...
...
@@ -6253,16 +6350,16 @@
"_name": "bg_vs",
"_objFlags": 0,
"_parent": {
"__id__": 1
28
"__id__": 1
30
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
3
"__id__": 13
5
},
{
"__id__": 13
4
"__id__": 13
6
}
],
"_prefab": null,
...
...
@@ -6318,7 +6415,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
2
"__id__": 13
4
},
"_enabled": true,
"_materials": [
...
...
@@ -6350,7 +6447,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
2
"__id__": 13
4
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6377,16 +6474,16 @@
"_name": "btn_restart",
"_objFlags": 0,
"_parent": {
"__id__": 1
28
"__id__": 1
30
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
6
"__id__": 13
8
},
{
"__id__": 13
7
"__id__": 13
9
}
],
"_prefab": null,
...
...
@@ -6442,7 +6539,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
5
"__id__": 13
7
},
"_enabled": true,
"_materials": [
...
...
@@ -6474,7 +6571,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
5
"__id__": 13
7
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6535,7 +6632,7 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 13
5
"__id__": 13
7
},
"_id": "c3xMGcQ7tMQbslVP/3vxhi"
},
...
...
@@ -6544,16 +6641,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 1
28
"__id__": 1
30
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 1
39
"__id__": 1
41
},
{
"__id__": 14
0
"__id__": 14
2
}
],
"_prefab": null,
...
...
@@ -6609,7 +6706,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
38
"__id__": 1
40
},
"_enabled": true,
"_materials": [
...
...
@@ -6641,7 +6738,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
38
"__id__": 1
40
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -6709,7 +6806,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
30
},
"_enabled": true,
"_id": "8dnGyEHlNHdq1T5QVoLE/I"
...
...
@@ -6719,7 +6816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
30
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -6749,9 +6846,6 @@
"__id__": 2
},
"_children": [
{
"__id__": 144
},
{
"__id__": 146
},
...
...
@@ -6766,6 +6860,9 @@
},
{
"__id__": 154
},
{
"__id__": 156
}
],
"_active": true,
...
...
@@ -6823,13 +6920,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
5
"__id__": 14
7
}
],
"_prefab": null,
...
...
@@ -6885,7 +6982,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
4
"__id__": 14
6
},
"_enabled": true,
"_materials": [
...
...
@@ -6917,13 +7014,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
7
"__id__": 14
9
}
],
"_prefab": null,
...
...
@@ -6979,7 +7076,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
6
"__id__": 14
8
},
"_enabled": true,
"_materials": [
...
...
@@ -7011,13 +7108,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
49
"__id__": 1
51
}
],
"_prefab": null,
...
...
@@ -7073,7 +7170,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
48
"__id__": 1
50
},
"_enabled": true,
"_materials": [
...
...
@@ -7105,13 +7202,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
1
"__id__": 15
3
}
],
"_prefab": null,
...
...
@@ -7167,7 +7264,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
0
"__id__": 15
2
},
"_enabled": true,
"_materials": [
...
...
@@ -7199,13 +7296,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
3
"__id__": 15
5
}
],
"_prefab": null,
...
...
@@ -7261,7 +7358,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
2
"__id__": 15
4
},
"_enabled": true,
"_materials": [
...
...
@@ -7293,13 +7390,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 14
3
"__id__": 14
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
5
"__id__": 15
7
}
],
"_prefab": null,
...
...
@@ -7355,7 +7452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
4
"__id__": 15
6
},
"_enabled": true,
"_materials": [
...
...
assets/NS03/scene/item.ts
View file @
1cbf5ebb
...
...
@@ -27,7 +27,8 @@ export default class NewClass extends cc.Component {
this
.
txt
=
pg
.
view
.
find
(
this
.
panel_text
,
"
txt
"
);
this
.
right
=
pg
.
view
.
find
(
this
.
panel_text
,
"
right
"
);
this
.
img
=
pg
.
view
.
find
(
this
.
panel_text
,
"
img
"
);
pg
.
view
.
touchOn
(
this
.
panel_text
,
this
.
onPlayerText
,
this
);
let
btn_touch
=
pg
.
view
.
find
(
this
,
"
btn_touch
"
);
pg
.
view
.
touchOn
(
btn_touch
,
this
.
onPlayerText
,
this
);
}
private
data
:
any
;
...
...
assets/NS03/scene/speak.ts
View file @
1cbf5ebb
...
...
@@ -8,7 +8,11 @@
import
pg
from
"
./pg
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
const
BTN_STATE
=
{
WAIT
:
1
,
START
:
2
,
END
:
3
,
}
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
...
...
@@ -56,16 +60,18 @@ export default class NewClass extends cc.Component {
private
tryCount
:
number
;
private
val
:
string
;
private
tipId
:
any
;
private
btnState
:
number
;
open
(
value
)
{
pg
.
hw
.
playLocalAudio
(
"
tips
"
).
then
(
id
=>
{
this
.
tipId
=
id
;
})
this
.
btnState
=
BTN_STATE
.
WAIT
;
this
.
val
=
value
;
pg
.
view
.
visible
(
this
.
btn_audio_start
,
true
);
pg
.
view
.
visible
(
this
.
btn_audio_stop
,
false
);
pg
.
view
.
visible
(
this
.
speak_ske
,
true
);
pg
.
view
.
visible
(
this
.
bg_goodjob
,
false
);
pg
.
view
.
visible
(
this
.
bg_tryagain
,
false
);
})
}
close
()
{
pg
.
view
.
visible
(
this
.
btn_audio_start
,
false
);
...
...
@@ -76,6 +82,8 @@ export default class NewClass extends cc.Component {
}
onTouchStart
()
{
if
(
this
.
btnState
!=
BTN_STATE
.
WAIT
)
return
;
this
.
btnState
=
BTN_STATE
.
START
;
if
(
this
.
tipId
)
{
pg
.
audio
.
stopAudio
(
this
.
tipId
);
this
.
tipId
=
null
;
...
...
@@ -88,6 +96,8 @@ export default class NewClass extends cc.Component {
win
.
courseware
&&
win
.
courseware
.
startTest
(
this
.
val
);
//开始录音
}
onTouchStop
()
{
if
(
this
.
btnState
!=
BTN_STATE
.
START
)
return
;
this
.
btnState
=
BTN_STATE
.
END
;
pg
.
view
.
visible
(
this
.
btn_audio_start
,
false
);
pg
.
view
.
visible
(
this
.
btn_audio_stop
,
false
);
let
win
:
any
=
window
;
...
...
@@ -104,7 +114,7 @@ export default class NewClass extends cc.Component {
"
fluency
"
:
60
,
"
rhythm
"
:
90
,
"
kernel_version
"
:
"
5.2.4
"
,
"
overall
"
:
75
,
//75
"
overall
"
:
20
,
//75
"
integrity
"
:
100
,
"
duration
"
:
"
6.779
"
,
"
rear_tone
"
:
"
fall
"
,
...
...
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