Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy05_pintu
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
hy05_pintu
Commits
665312e1
Commit
665312e1
authored
Jul 11, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8510c2f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
LayerBack_hy05_pintu.ts
assets/hy05_pintu/common/layer_back/LayerBack_hy05_pintu.ts
+4
-0
ImgVoice_hy05_pintu.ts
assets/hy05_pintu/common/script/ImgVoice_hy05_pintu.ts
+4
-0
LayerRecord_hy05_pintu.ts
assets/hy05_pintu/common/script/LayerRecord_hy05_pintu.ts
+4
-0
No files found.
assets/hy05_pintu/common/layer_back/LayerBack_hy05_pintu.ts
View file @
665312e1
...
...
@@ -66,6 +66,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/hy05_pintu/common/script/ImgVoice_hy05_pintu.ts
View file @
665312e1
...
...
@@ -32,6 +32,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/hy05_pintu/common/script/LayerRecord_hy05_pintu.ts
View file @
665312e1
...
...
@@ -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