mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Stop the audio error log from happening
No more "Audio source track is Undefined, moving to Menu track"
This commit is contained in:
parent
b2fb622bbb
commit
cdc4086cce
@ -37,9 +37,13 @@ namespace NewHorizons.Components
|
||||
MakeWhiteHole();
|
||||
|
||||
_isWarpingIn = false;
|
||||
|
||||
_oneShotSource = gameObject.AddComponent<OWAudioSource>();
|
||||
|
||||
var audioObject = new GameObject("WarpOneShot");
|
||||
audioObject.transform.parent = transform;
|
||||
audioObject.SetActive(false);
|
||||
_oneShotSource = audioObject.AddComponent<OWAudioSource>();
|
||||
_oneShotSource._track = OWAudioMixer.TrackName.Ship;
|
||||
audioObject.SetActive(true);
|
||||
|
||||
GlobalMessenger.AddListener("FinishOpenEyes", new Callback(OnFinishOpenEyes));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user