mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[OriginShift] Moved debug to BTKUI instead of keybind
This commit is contained in:
parent
a29075d2ad
commit
69e6298281
2 changed files with 20 additions and 16 deletions
|
@ -231,24 +231,15 @@ public class OriginShiftManager : MonoBehaviour
|
|||
|
||||
#endregion Utility Methods
|
||||
|
||||
#region Unity Events
|
||||
#region Debug Methods
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
private void Update()
|
||||
public void ToggleDebugOverlay(bool state)
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.P)) // press p to print chunk
|
||||
OriginShiftMod.Logger.Msg($"Current Chunk: {ChunkOffset}");
|
||||
|
||||
// press o to toggle debug
|
||||
if (Input.GetKeyDown(KeyCode.O))
|
||||
{
|
||||
if (TryGetComponent(out DebugTextDisplay debugTextDisplay))
|
||||
Destroy(debugTextDisplay);
|
||||
else
|
||||
gameObject.AddComponent<DebugTextDisplay>();
|
||||
}
|
||||
if (TryGetComponent(out DebugTextDisplay debugTextDisplay))
|
||||
Destroy(debugTextDisplay);
|
||||
else
|
||||
gameObject.AddComponent<DebugTextDisplay>();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion Unity Events
|
||||
#endregion Debug Methods
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue