Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy14_pipei
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
hy14_pipei
Commits
5338880d
Commit
5338880d
authored
Jul 12, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8a82aa93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
LayerBack_hy14_pipei.ts
assets/hy14_pipei/common/layer_back/LayerBack_hy14_pipei.ts
+4
-0
ImgVoice_hy14_pipei.ts
assets/hy14_pipei/common/script/ImgVoice_hy14_pipei.ts
+4
-0
LayerRecord_hy14_pipei.ts
assets/hy14_pipei/common/script/LayerRecord_hy14_pipei.ts
+4
-0
No files found.
assets/hy14_pipei/common/layer_back/LayerBack_hy14_pipei.ts
View file @
5338880d
...
...
@@ -62,6 +62,10 @@ export default class LayerBack extends cc.Component {
});
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
{
this
.
unschedule
(
this
.
playVoiceRunning
)
return
;
}
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy14_pipei/common/script/ImgVoice_hy14_pipei.ts
View file @
5338880d
...
...
@@ -31,6 +31,10 @@ export default class ImgVoice extends cc.Component {
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
{
this
.
unschedule
(
this
.
playVoiceRunning
)
return
;
}
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy14_pipei/common/script/LayerRecord_hy14_pipei.ts
View file @
5338880d
...
...
@@ -113,6 +113,10 @@ export default class LayerRecord extends cc.Component {
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
}
playVoiceRunning
()
{
if
(
!
this
.
layout_record
)
{
this
.
unschedule
(
this
.
playVoiceRunning
)
return
;
}
this
.
playVoiceCount
++
;
let
btn_play
=
pg
.
view
.
find
(
this
.
layout_record
,
'
btn_play
'
);
let
p0
=
btn_play
.
getChildByName
(
'
p0
'
)
...
...
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