Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mercury233
ygopro2
Commits
eb93066b
Commit
eb93066b
authored
Jan 16, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fixed an issue that caused the audio to not play in folders with specific characters."
This reverts commit
9e36fb05
.
parent
b65f74e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
Assets/SibylSystem/MonoHelpers/UIHelper.cs
Assets/SibylSystem/MonoHelpers/UIHelper.cs
+1
-1
Assets/old/Ocgcore/animation_scripts/audio_helper.cs
Assets/old/Ocgcore/animation_scripts/audio_helper.cs
+10
-12
No files found.
Assets/SibylSystem/MonoHelpers/UIHelper.cs
View file @
eb93066b
...
...
@@ -963,7 +963,7 @@ public static class UIHelper
return
;
}
path
=
Environment
.
CurrentDirectory
.
Replace
(
"\\"
,
"/"
)
+
"/"
+
path
;
path
=
new
Uri
(
new
Uri
(
"file:///"
),
path
).
AbsoluteP
ath
;
path
=
"file:///"
+
p
ath
;
GameObject
audio_helper
=
Program
.
I
().
ocgcore
.
create_s
(
Program
.
I
().
mod_audio_effect
);
audio_helper
.
GetComponent
<
audio_helper
>().
play
(
path
,
Program
.
I
().
setting
.
soundValue
());
Program
.
I
().
destroy
(
audio_helper
,
5f
);
...
...
Assets/old/Ocgcore/animation_scripts/audio_helper.cs
View file @
eb93066b
...
...
@@ -17,25 +17,23 @@ public class audio_helper : MonoBehaviour {
}
}
bool
played
=
false
;
p
rivate
IEnumerator
playSound
(
string
u
,
float
vol
)
p
ublic
void
play
(
string
u
,
float
vol
)
{
played
=
false
;
using
(
WWW
www
=
new
WWW
(
u
))
{
yield
return
www
;
WWW
www
=
new
WWW
(
u
);
AudioClip
ac
=
www
.
GetAudioClip
(
true
,
true
);
audioMgr
.
clip
=
ac
;
}
audioMgr
.
volume
=
vol
;
}
public
void
play
(
string
u
,
float
vol
)
{
StartCoroutine
(
playSound
(
u
,
vol
));
}
public
void
change_bgm
(
string
str
)
{
StartCoroutine
(
playSound
(
str
,
100f
));
played
=
false
;
WWW
www
=
new
WWW
(
str
);
AudioClip
ac
=
www
.
GetAudioClip
(
true
,
true
);
audioMgr
.
clip
=
ac
;
audioMgr
.
loop
=
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