mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
gated some things that should be debug or nh dev only
This commit is contained in:
parent
40a14ad1ae
commit
01fe2ffb24
@ -108,7 +108,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
var boxShape = empty.AddComponent<BoxShape>();
|
var boxShape = empty.AddComponent<BoxShape>();
|
||||||
boxShape.center = boxBounds.center;
|
boxShape.center = boxBounds.center;
|
||||||
boxShape.extents = boxBounds.size;
|
boxShape.extents = boxBounds.size;
|
||||||
empty.AddComponent<BoxShapeVisualizer>();
|
if (Main.Debug) empty.AddComponent<BoxShapeVisualizer>();
|
||||||
|
|
||||||
empty.AddComponent<ShapeVisibilityTracker>();
|
empty.AddComponent<ShapeVisibilityTracker>();
|
||||||
}
|
}
|
||||||
@ -164,7 +164,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
var box = boxshapeReciever.g.AddComponent<BoxShape>();
|
var box = boxshapeReciever.g.AddComponent<BoxShape>();
|
||||||
boxshapeReciever.g.AddComponent<ShapeVisibilityTracker>();
|
boxshapeReciever.g.AddComponent<ShapeVisibilityTracker>();
|
||||||
boxshapeReciever.g.AddComponent<BoxShapeVisualizer>();
|
if (Main.Debug) boxshapeReciever.g.AddComponent<BoxShapeVisualizer>();
|
||||||
|
|
||||||
var fixer = boxshapeReciever.g.AddComponent<BoxShapeFixer>();
|
var fixer = boxshapeReciever.g.AddComponent<BoxShapeFixer>();
|
||||||
fixer.shape = box;
|
fixer.shape = box;
|
||||||
|
|||||||
@ -290,7 +290,7 @@ namespace NewHorizons
|
|||||||
Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>();
|
Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>();
|
||||||
Locator.GetPlayerBody().gameObject.AddComponent<DebugNomaiTextPlacer>();
|
Locator.GetPlayerBody().gameObject.AddComponent<DebugNomaiTextPlacer>();
|
||||||
Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>();
|
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);
|
if (shouldWarpIn) _shipWarpController.WarpIn(WearingSuit);
|
||||||
else FindObjectOfType<PlayerSpawner>().DebugWarp(SystemDict[_currentStarSystem].SpawnPoint);
|
else FindObjectOfType<PlayerSpawner>().DebugWarp(SystemDict[_currentStarSystem].SpawnPoint);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user