Merge branch '20-11-27-merge'

This commit is contained in:
Pieter-Jan Briers
2020-11-27 00:54:29 +01:00
24 changed files with 177 additions and 144 deletions

View File

@@ -158,8 +158,7 @@ namespace Content.Shared.GameObjects.Components.Body.Mechanism
return true;
}
behavior = new T();
IoCManager.InjectDependencies(behavior);
behavior = IoCManager.Resolve<IDynamicTypeFactory>().CreateInstance<T>();
_behaviors.Add(typeof(T), behavior);
behavior.Initialize(this);
behavior.Startup();