fix errors from audio stuff

This commit is contained in:
Mister_Nebula 2022-01-12 18:07:21 +00:00
parent 4950987e57
commit 12e35e3b86

View File

@ -45,6 +45,7 @@ namespace QSB.Audio
bool randomize)
{
var go = new GameObject(name);
go.SetActive(false);
go.transform.parent = parent;
go.transform.localPosition = Vector3.zero;
go.transform.localScale = Vector3.one;
@ -66,6 +67,8 @@ namespace QSB.Audio
owAudioSource._track = track;
owAudioSource._randomizePlayheadOnAwake = randomize;
go.SetActive(true);
return owAudioSource;
}
}