From c220222e7cac006a5963ebc161fdd1924185a0b5 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sat, 10 Jun 2023 20:01:51 +0800 Subject: [PATCH] simple refactoring --- src/AutoInjectSystem.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/AutoInjectSystem.cs b/src/AutoInjectSystem.cs index ae033be..99025d2 100644 --- a/src/AutoInjectSystem.cs +++ b/src/AutoInjectSystem.cs @@ -28,9 +28,6 @@ namespace DCFApixels.DragonECS Type systemType = system.GetType(); foreach (var property in GetAllPropertiesFor(systemType)) { - if (property.GetAutoInjectAttribute() == null) - continue; - Type fieldType = property.PropertyType; List list; if (!_systemProoperties.TryGetValue(fieldType, out list)) @@ -38,7 +35,6 @@ namespace DCFApixels.DragonECS list = new List(); _systemProoperties.Add(fieldType, list); } - list.Add(new InjectedPropertyRecord(system, property)); } } @@ -202,7 +198,7 @@ namespace DCFApixels.DragonECS private void ClearUsless() { _autoInjectionMap = null; - GC.Collect(0); //Собрать все хламовые созданне время мини классы + GC.Collect(0); //Собрать все хламовые мини классы созданне временно } }