diff --git a/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs b/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs index e23f1654..ebd3cb33 100644 --- a/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs +++ b/VContainer/Assets/VContainer/Runtime/Unity/SystemRegistrationBuilder.cs @@ -11,16 +11,15 @@ public sealed class SystemRegistrationBuilder : RegistrationBuilder readonly string worldName; Type systemGroupType; - internal SystemRegistrationBuilder( - Type implementationType, - string worldName, - List interfaceTypes = null) - : base(implementationType, default, interfaceTypes) + internal SystemRegistrationBuilder(Type implementationType, string worldName) + : base(implementationType, default) { this.worldName = worldName; - InterfaceTypes = InterfaceTypes ?? new List(); - InterfaceTypes.Add(typeof(ComponentSystemBase)); - InterfaceTypes.Add(ImplementationType); + InterfaceTypes = new List + { + typeof(ComponentSystemBase), + typeof(implementationType) + }; } public override IRegistration Build()