improve warnings

This commit is contained in:
JohnCorby 2022-09-07 17:30:22 -07:00
parent bf6745d351
commit 7a67a1f980

View File

@ -11,15 +11,14 @@ public static class GroupBuilder
/// </summary> /// </summary>
public static void Make(GameObject go, Sector sector) public static void Make(GameObject go, Sector sector)
{ {
Logger.LogVerbose($"putting groups on {go} (linked to {sector})");
if (!sector) if (!sector)
{ {
Logger.LogWarning("tried to put groups on a null sector"); Logger.LogWarning($"tried to put groups on {go.name} when sector is null");
return; return;
} }
if (go.activeInHierarchy) if (go.activeInHierarchy)
{ {
Logger.LogWarning("tried to put groups on an active gameobject"); Logger.LogWarning($"tried to put groups on an active gameobject {go.name}");
return; return;
} }