Fixed Ship Going Haywire In Start()

This commit is contained in:
Ben C 2022-06-10 14:20:23 -04:00
parent b67207555f
commit a1026e72ad

View File

@ -37,11 +37,9 @@ namespace NewHorizons.Components
MakeWhiteHole();
_isWarpingIn = false;
gameObject.SetActive(false);
_oneShotSource = base.gameObject.AddComponent<OWAudioSource>();
_oneShotSource = gameObject.AddComponent<OWAudioSource>();
_oneShotSource._track = OWAudioMixer.TrackName.Ship;
gameObject.SetActive(true);
GlobalMessenger.AddListener("FinishOpenEyes", new Callback(OnFinishOpenEyes));
}