mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Change travel music on next update
This commit is contained in:
parent
60e0337648
commit
29a9c239f3
@ -53,6 +53,8 @@ namespace NewHorizons.Handlers
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (clip != null)
|
if (clip != null)
|
||||||
|
{
|
||||||
|
Main.Instance.ModHelper.Events.Unity.FireOnNextUpdate(() =>
|
||||||
{
|
{
|
||||||
var travelSource = Locator.GetGlobalMusicController()._travelSource;
|
var travelSource = Locator.GetGlobalMusicController()._travelSource;
|
||||||
travelSource._audioLibraryClip = AudioType.None;
|
travelSource._audioLibraryClip = AudioType.None;
|
||||||
@ -60,6 +62,7 @@ namespace NewHorizons.Handlers
|
|||||||
travelSource._clipArrayLength = 0;
|
travelSource._clipArrayLength = 0;
|
||||||
travelSource._clipSelectionOnPlay = OWAudioSource.ClipSelectionOnPlay.MANUAL;
|
travelSource._clipSelectionOnPlay = OWAudioSource.ClipSelectionOnPlay.MANUAL;
|
||||||
travelSource.clip = clip;
|
travelSource.clip = clip;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user