Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn14_dds
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
sn14_dds
Commits
bddd536d
Commit
bddd536d
authored
Oct 08, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认情况下点击音效bug
parent
498f083e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
.DS_Store
.DS_Store
+0
-0
sn14_dds.ts
assets/sn14_dds/scene/sn14_dds.ts
+8
-2
hy11.meta
assets/sn14_dds/textures/hy11.meta
+0
-12
No files found.
.DS_Store
View file @
bddd536d
No preview for this file type
assets/sn14_dds/scene/sn14_dds.ts
View file @
bddd536d
...
@@ -120,15 +120,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -120,15 +120,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
lastTime
=
new
Date
().
getTime
();
this
.
lastTime
=
new
Date
().
getTime
();
this
.
rightList
=
[];
this
.
rightList
=
[];
this
.
onTouchAudio
().
then
(()
=>
{
this
.
onTouchAudio
(
false
).
then
(()
=>
{
this
.
inited
=
true
;
this
.
startQuestion
();
this
.
startQuestion
();
})
})
}
}
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
btn_laba
:
cc
.
Node
=
null
;
btn_laba
:
cc
.
Node
=
null
;
onTouchAudio
()
{
private
inited
:
boolean
;
onTouchAudio
(
isClick
)
{
return
new
Promise
(
res
=>
{
return
new
Promise
(
res
=>
{
if
(
isClick
&&
!
this
.
inited
)
{
return
;
}
this
.
btn_laba
.
getComponent
(
ImgVoice
).
playVoiceStart
();
this
.
btn_laba
.
getComponent
(
ImgVoice
).
playVoiceStart
();
pg
.
audio
.
playAudioByUrl
(
this
.
currentQuestion
.
questionAudio
).
then
(()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
currentQuestion
.
questionAudio
).
then
(()
=>
{
this
.
btn_laba
.
getComponent
(
ImgVoice
).
playVoiceEnd
();
this
.
btn_laba
.
getComponent
(
ImgVoice
).
playVoiceEnd
();
...
...
assets/sn14_dds/textures/hy11.meta
deleted
100644 → 0
View file @
498f083e
{
"ver": "1.1.2",
"uuid": "56a6d8e2-ecd9-4d82-ab7a-2f845311d68c",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
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