mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Fixed error
This commit is contained in:
parent
c5ddefb686
commit
11b80f12de
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ namespace RhythmHeavenMania.Util
|
|||
return audioSource;
|
||||
}
|
||||
|
||||
public static AudioSource PlayOneShotGame(string name, float beat = -1, bool forcePlay = false , float pitch = 1f, float volume = 1f, bool looping = false)
|
||||
public static AudioSource PlayOneShotGame(string name, float beat = -1, float pitch = 1f, float volume = 1f, bool looping = false, bool forcePlay = false)
|
||||
{
|
||||
if (GameManager.instance.currentGame == name.Split('/')[0] || forcePlay)
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ namespace RhythmHeavenMania.Util
|
|||
return null;
|
||||
}
|
||||
|
||||
public static AudioSource PlayOneShotScheduledGame(string name, double targetTime, bool forcePlay = false, float pitch = 1f, float volume = 1f, bool looping = false)
|
||||
public static AudioSource PlayOneShotScheduledGame(string name, double targetTime, float pitch = 1f, float volume = 1f, bool looping = false, bool forcePlay = false)
|
||||
{
|
||||
if (GameManager.instance.currentGame == name.Split('/')[0] || forcePlay)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue