gated some things that should be debug or nh dev only

This commit is contained in:
FreezeDriedMangoes 2022-06-19 09:40:12 -04:00
parent 40a14ad1ae
commit 01fe2ffb24
2 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ namespace NewHorizons.Builder.Props
var boxShape = empty.AddComponent<BoxShape>();
boxShape.center = boxBounds.center;
boxShape.extents = boxBounds.size;
empty.AddComponent<BoxShapeVisualizer>();
if (Main.Debug) empty.AddComponent<BoxShapeVisualizer>();
empty.AddComponent<ShapeVisibilityTracker>();
}
@ -164,7 +164,7 @@ namespace NewHorizons.Builder.Props
{
var box = boxshapeReciever.g.AddComponent<BoxShape>();
boxshapeReciever.g.AddComponent<ShapeVisibilityTracker>();
boxshapeReciever.g.AddComponent<BoxShapeVisualizer>();
if (Main.Debug) boxshapeReciever.g.AddComponent<BoxShapeVisualizer>();
var fixer = boxshapeReciever.g.AddComponent<BoxShapeFixer>();
fixer.shape = box;

View File

@ -290,7 +290,7 @@ namespace NewHorizons
Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>();
Locator.GetPlayerBody().gameObject.AddComponent<DebugNomaiTextPlacer>();
Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>();
DebugArrow.CreateArrow(Locator.GetPlayerBody().gameObject);
// DebugArrow.CreateArrow(Locator.GetPlayerBody().gameObject); // This is for NH devs mostly. It shouldn't be active in debug mode for now. Someone should make a dev tools submenu for it though.
if (shouldWarpIn) _shipWarpController.WarpIn(WearingSuit);
else FindObjectOfType<PlayerSpawner>().DebugWarp(SystemDict[_currentStarSystem].SpawnPoint);