mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
improve warnings
This commit is contained in:
parent
bf6745d351
commit
7a67a1f980
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user