make a lil nicer

This commit is contained in:
JohnCorby 2022-07-24 10:20:22 -07:00
parent d0d93eddef
commit 8a1ed54818
2 changed files with 8 additions and 9 deletions

View File

@ -47,7 +47,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
private const int UpdatesUntilScroll = 30;
private const int UpdatesBetweenScroll = 5;
private void GoForwardOneObject()
private static void GoForwardOneObject()
{
var allWorldObjects = typeof(IWorldObject).GetDerivedTypes().ToArray();
if (WorldObjectSelection == null)
@ -66,7 +66,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
WorldObjectSelection = allWorldObjects[index];
}
private void GoBackOneObject()
private static void GoBackOneObject()
{
var allWorldObjects = typeof(IWorldObject).GetDerivedTypes().ToArray();
if (WorldObjectSelection == null)
@ -119,7 +119,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
}
}
}
else if (!Keyboard.current[Key.Comma].isPressed)
else
{
_backTimer = 0;
}
@ -137,7 +137,7 @@ public class DebugActions : MonoBehaviour, IAddComponentOnStart
}
}
}
else if (!Keyboard.current[Key.Period].isPressed)
else
{
_forwardTimer = 0;
}

View File

@ -152,7 +152,6 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart
WriteLine(2, $"Ready : {player.IsReady}");
WriteLine(2, $"Suited Up : {player.SuitedUp}");
WriteLine(2, $"InDreamWorld : {player.InDreamWorld}");
if (player.IsReady && QSBWorldSync.AllObjectsReady)
{
@ -260,7 +259,7 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart
}
else
{
WriteLine(4, $"- LANTERN NULL", Color.red);
WriteLine(4, "- LANTERN NULL", Color.red);
}
var playerCamera = player.player.Camera;
@ -273,7 +272,7 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart
}
else
{
WriteLine(4, $"- CAMERA NULL", Color.red);
WriteLine(4, "- CAMERA NULL", Color.red);
}
}
}
@ -356,8 +355,8 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart
if (QSBCore.DebugSettings.DrawLines)
{
var list = DebugActions.WorldObjectSelection == null
? QSBWorldSync.GetWorldObjects()
: QSBWorldSync.GetWorldObjects(DebugActions.WorldObjectSelection);
? QSBWorldSync.GetWorldObjects()
: QSBWorldSync.GetWorldObjects(DebugActions.WorldObjectSelection);
foreach (var obj in list)
{