feat: added both new components to player body

This commit is contained in:
FreezeDriedMangoes 2022-05-13 09:45:46 -04:00
parent 26f24250fa
commit 287a5ff033

View File

@ -215,8 +215,10 @@ namespace NewHorizons
PlanetCreationHandler.Init(BodyDict[CurrentStarSystem]);
SystemCreationHandler.LoadSystem(SystemDict[CurrentStarSystem]);
LoadTranslations(ModHelper.Manifest.ModFolderPath + "AssetBundle/", this);
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>());
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugRaycaster>());
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>());
// Warp drive
StarChartHandler.Init(SystemDict.Values.ToArray());