From 977d387d57736ea05eadd676ea909d65b802e69c Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sun, 28 May 2023 05:53:37 +0800 Subject: [PATCH] refactoring --- src/AutoInjectSystem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AutoInjectSystem.cs b/src/AutoInjectSystem.cs index f3e309a..90e0334 100644 --- a/src/AutoInjectSystem.cs +++ b/src/AutoInjectSystem.cs @@ -106,6 +106,7 @@ namespace DCFApixels.DragonECS private void WarningMissedInjections() { +#if DEBUG foreach (var item in _notInjected) { foreach (var systemRecord in _systems[item]) @@ -113,6 +114,7 @@ namespace DCFApixels.DragonECS EcsDebug.PrintWarning($"in system {EcsDebugUtility.GetGenericTypeFullName(systemRecord.target.GetType(), 1)} is missing an injection of {EcsDebugUtility.GetGenericTypeFullName(item, 1)}."); } } +#endif } private readonly struct FiledRecord