Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy03_zadan
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
hy03_zadan
Commits
3085284c
Commit
3085284c
authored
Oct 09, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7256b71c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pg_hy03_zadan.ts
assets/hy03_zadan/scene/tool/pg_hy03_zadan.ts
+1
-0
defaultData_hy03_zadan.ts
assets/hy03_zadan/script/defaultData_hy03_zadan.ts
+2
-2
No files found.
assets/hy03_zadan/scene/tool/pg_hy03_zadan.ts
View file @
3085284c
...
@@ -545,6 +545,7 @@ let pg = {
...
@@ -545,6 +545,7 @@ let pg = {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
audio_url
)
return
resolve
(
null
);
if
(
!
audio_url
)
return
resolve
(
null
);
cc
.
assetManager
.
loadRemote
(
audio_url
,
(
err
,
audioClip
:
any
)
=>
{
cc
.
assetManager
.
loadRemote
(
audio_url
,
(
err
,
audioClip
:
any
)
=>
{
cc
.
audioEngine
.
stopAllEffects
();
const
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
const
audioId
=
cc
.
audioEngine
.
play
(
audioClip
,
false
,
0.8
);
cc
.
audioEngine
.
setFinishCallback
(
audioId
,
()
=>
{
cc
.
audioEngine
.
setFinishCallback
(
audioId
,
()
=>
{
cb
&&
cb
();
cb
&&
cb
();
...
...
assets/hy03_zadan/script/defaultData_hy03_zadan.ts
View file @
3085284c
...
@@ -30,7 +30,7 @@ export const defaultData = {
...
@@ -30,7 +30,7 @@ export const defaultData = {
}
}
],
],
"
npcTitle
"
:
"
hi fiddler
"
,
"
npcTitle
"
:
"
hi fiddler
"
,
"
npcAudio
"
:
""
,
//
"npcAudio": "",
//
"npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3
"
,
"
npcAudioName
"
:
"
bear_2.mp3
"
"
npcAudioName
"
:
"
bear_2.mp3
"
}
}
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