mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
fix deleting audio source when loading finishes
This commit is contained in:
parent
896729818b
commit
e4b788b6ca
1 changed files with 7 additions and 1 deletions
|
@ -40,6 +40,12 @@ namespace SanAndreasUnity.Behaviours.Audio
|
|||
|
||||
|
||||
|
||||
static AudioManager()
|
||||
{
|
||||
Loader.onLoadingFinished -= OnLoadingFinished;
|
||||
Loader.onLoadingFinished += OnLoadingFinished;
|
||||
}
|
||||
|
||||
protected override void OnSingletonDisable()
|
||||
{
|
||||
if (s_gtaAudioFiles != null)
|
||||
|
@ -49,7 +55,7 @@ namespace SanAndreasUnity.Behaviours.Audio
|
|||
}
|
||||
}
|
||||
|
||||
void OnLoaderFinished ()
|
||||
static void OnLoadingFinished ()
|
||||
{
|
||||
if (s_startupAudioSource != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue