mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 12:08:52 +00:00
fix errors from audio stuff
This commit is contained in:
parent
4950987e57
commit
12e35e3b86
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user