Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy11_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
hy11_paopao
Commits
f432a6cd
Commit
f432a6cd
authored
Jul 12, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡死修复
parent
a2f48fc0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
1 deletion
+17
-1
LayerBack_hy11_paopao.ts
...ts/hy11_paopao/common/layer_back/LayerBack_hy11_paopao.ts
+4
-0
ImgVoice_hy11_paopao.ts
assets/hy11_paopao/common/script/ImgVoice_hy11_paopao.ts
+5
-0
LayerRecord_hy11_paopao.ts
assets/hy11_paopao/common/script/LayerRecord_hy11_paopao.ts
+4
-0
hy11_paopao.ts
assets/hy11_paopao/scene/hy11_paopao.ts
+3
-1
pg_hy11_paopao.ts
assets/hy11_paopao/scene/pg_hy11_paopao.ts
+1
-0
No files found.
assets/hy11_paopao/common/layer_back/LayerBack_hy11_paopao.ts
View file @
f432a6cd
...
...
@@ -64,7 +64,11 @@ export default class LayerBack extends cc.Component {
this
.
audioId
=
audioId
;
});
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
return
;
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy11_paopao/common/script/ImgVoice_hy11_paopao.ts
View file @
f432a6cd
...
...
@@ -30,7 +30,12 @@ export default class ImgVoice extends cc.Component {
this
.
playVoiceCount
=
0
;
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
playVoiceRunning
()
{
if
(
!
this
.
img_npc_voice
)
return
;
this
.
playVoiceCount
++
;
let
p1
=
this
.
img_npc_voice
.
getChildByName
(
'
p1
'
)
let
p2
=
this
.
img_npc_voice
.
getChildByName
(
'
p2
'
)
...
...
assets/hy11_paopao/common/script/LayerRecord_hy11_paopao.ts
View file @
f432a6cd
...
...
@@ -112,9 +112,13 @@ export default class LayerRecord extends cc.Component {
this
.
playVoiceCount
=
0
;
this
.
schedule
(
this
.
playVoiceRunning
,
0.3
)
}
protected
onDestroy
():
void
{
this
.
unscheduleAllCallbacks
();
}
playVoiceRunning
()
{
this
.
playVoiceCount
++
;
let
btn_play
=
pg
.
view
.
find
(
this
.
layout_record
,
'
btn_play
'
);
if
(
!
btn_play
)
return
;
let
p0
=
btn_play
.
getChildByName
(
'
p0
'
)
let
p1
=
btn_play
.
getChildByName
(
'
p1
'
)
let
p2
=
btn_play
.
getChildByName
(
'
p2
'
)
...
...
assets/hy11_paopao/scene/hy11_paopao.ts
View file @
f432a6cd
...
...
@@ -30,7 +30,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAnima
()
{
}
protected
onDestroy
():
void
{
pg
.
event
.
clear
();
}
async
onLoadEnd
()
{
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
this
.
initData
()
...
...
assets/hy11_paopao/scene/pg_hy11_paopao.ts
View file @
f432a6cd
...
...
@@ -351,6 +351,7 @@ let pg = {
if
(
!
node
)
return
;
let
component
=
node
.
getComponent
(
cc
.
Label
);
//组件功能 非node的功能
component
.
string
=
text
;
component
.
cacheMode
=
cc
.
Label
.
CacheMode
.
CHAR
;
return
true
;
},
//更变颜色
...
...
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