mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 08:47:37 +02:00
Fixed some errors
This commit is contained in:
@ -109,6 +109,10 @@ namespace RhythmHeavenMania.Util
|
||||
|
||||
public static void KillLoop(AudioSource source, float fadeTime)
|
||||
{
|
||||
// Safeguard against previously-destroyed sounds.
|
||||
if (source == null)
|
||||
return;
|
||||
|
||||
source.GetComponent<Sound>().KillLoop(fadeTime);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user