Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy17_hds
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
hy17_hds
Commits
1e36a153
Commit
1e36a153
authored
Sep 25, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整卡死部分
parent
5b7a1bd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
29 deletions
+46
-29
LayerBack_hy17_hds.ts
assets/hy17_hds/common/layer_back/LayerBack_hy17_hds.ts
+8
-4
layer_back_hy17_hds.prefab
assets/hy17_hds/common/layer_back/layer_back_hy17_hds.prefab
+2
-2
layer_coin_hy17_hds.prefab
assets/hy17_hds/common/layer_coin/layer_coin_hy17_hds.prefab
+36
-23
No files found.
assets/hy17_hds/common/layer_back/LayerBack_hy17_hds.ts
View file @
1e36a153
...
@@ -22,6 +22,7 @@ export default class LayerBack extends cc.Component {
...
@@ -22,6 +22,7 @@ export default class LayerBack extends cc.Component {
this
.
unscheduleAllCallbacks
();
this
.
unscheduleAllCallbacks
();
}
}
initView
()
{
initView
()
{
this
.
canTouch
=
true
;
this
.
bg_forbid
=
pg
.
view
.
find
(
this
,
'
bg_forbid
'
)
this
.
bg_forbid
=
pg
.
view
.
find
(
this
,
'
bg_forbid
'
)
this
.
btn_back
=
pg
.
view
.
find
(
this
,
'
btn_back
'
)
this
.
btn_back
=
pg
.
view
.
find
(
this
,
'
btn_back
'
)
this
.
label_title
=
pg
.
view
.
find
(
this
,
'
label_title
'
)
this
.
label_title
=
pg
.
view
.
find
(
this
,
'
label_title
'
)
...
@@ -51,19 +52,22 @@ export default class LayerBack extends cc.Component {
...
@@ -51,19 +52,22 @@ export default class LayerBack extends cc.Component {
}
}
private
playVoiceCount
:
number
;
private
playVoiceCount
:
number
;
private
audioId
:
number
;
private
audioId
:
number
;
private
canTouch
:
boolean
;
playVoiceStart
()
{
playVoiceStart
()
{
if
(
this
.
playVoiceCount
>
0
)
{
if
(
!
this
.
canTouch
)
return
;
if
(
this
.
audioId
)
cc
.
audioEngine
.
stopEffect
(
this
.
audioId
)
;
this
.
canTouch
=
false
;
this
.
playVoiceEnd
(
);
if
(
this
.
audioId
)
cc
.
audioEngine
.
stopEffect
(
this
.
audioId
);
}
this
.
playVoiceEnd
();
this
.
playVoiceCount
=
0
;
this
.
playVoiceCount
=
0
;
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
pg
.
audio
.
playAudioByUrl
(
this
.
npcAudio
,
()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
npcAudio
,
()
=>
{
this
.
audioId
=
null
;
this
.
playVoiceEnd
();
this
.
playVoiceEnd
();
pg
.
view
.
visible
(
this
.
bg_forbid
,
false
)
pg
.
view
.
visible
(
this
.
bg_forbid
,
false
)
pg
.
event
.
emit
(
'
npc_voice_play_voice_end
'
)
pg
.
event
.
emit
(
'
npc_voice_play_voice_end
'
)
},
(
audioId
)
=>
{
},
(
audioId
)
=>
{
this
.
audioId
=
audioId
;
this
.
audioId
=
audioId
;
this
.
canTouch
=
true
;
});
});
}
}
playVoiceRunning
()
{
playVoiceRunning
()
{
...
...
assets/hy17_hds/common/layer_back/layer_back_hy17_hds.prefab
View file @
1e36a153
...
@@ -443,7 +443,7 @@
...
@@ -443,7 +443,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
50.74
,
"width": 1
48.45
,
"height": 63
"height": 63
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -529,7 +529,7 @@
...
@@ -529,7 +529,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
20
8.95399999999995
,
20
6.664
,
0,
0,
0,
0,
0,
0,
...
...
assets/hy17_hds/common/layer_coin/layer_coin_hy17_hds.prefab
View file @
1e36a153
...
@@ -21,17 +21,17 @@
...
@@ -21,17 +21,17 @@
"__id__": 2
"__id__": 2
},
},
{
{
"__id__": 1
6
"__id__": 1
7
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
1
"__id__": 2
2
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
2
"__id__": 2
3
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -92,19 +92,19 @@
...
@@ -92,19 +92,19 @@
"__id__": 3
"__id__": 3
},
},
{
{
"__id__":
6
"__id__":
7
},
},
{
{
"__id__":
9
"__id__":
10
},
},
{
{
"__id__": 1
2
"__id__": 1
3
}
}
],
],
"_active": false,
"_active": false,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 1
5
"__id__": 1
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -165,10 +165,13 @@
...
@@ -165,10 +165,13 @@
"_components": [
"_components": [
{
{
"__id__": 4
"__id__": 4
},
{
"__id__": 5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
5
"__id__":
6
},
},
"_opacity": 102,
"_opacity": 102,
"_color": {
"_color": {
...
@@ -249,6 +252,16 @@
...
@@ -249,6 +252,16 @@
"_atlas": null,
"_atlas": null,
"_id": ""
"_id": ""
},
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_id": ""
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
...
@@ -271,11 +284,11 @@
...
@@ -271,11 +284,11 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
7
"__id__":
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
8
"__id__":
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -329,7 +342,7 @@
...
@@ -329,7 +342,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
6
"__id__":
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -386,11 +399,11 @@
...
@@ -386,11 +399,11 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
0
"__id__": 1
1
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
1
"__id__": 1
2
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -444,7 +457,7 @@
...
@@ -444,7 +457,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
9
"__id__":
10
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -499,11 +512,11 @@
...
@@ -499,11 +512,11 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
4
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
4
"__id__": 1
5
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -557,7 +570,7 @@
...
@@ -557,7 +570,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
2
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -623,13 +636,13 @@
...
@@ -623,13 +636,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
7
"__id__": 1
8
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 2
0
"__id__": 2
1
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -683,17 +696,17 @@
...
@@ -683,17 +696,17 @@
"_name": "coin",
"_name": "coin",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
6
"__id__": 1
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
8
"__id__": 1
9
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
19
"__id__":
20
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -747,7 +760,7 @@
...
@@ -747,7 +760,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
7
"__id__": 1
8
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
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