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