mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-11 06:40:39 +00:00
make a lil nicer
This commit is contained in:
parent
d0d93eddef
commit
8a1ed54818
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user