diff --git a/Engine.Core/Factory/HierarchyObjectFactory.cs b/Engine.Core/Factory/HierarchyObjectFactory.cs index 1cb31d3..099a890 100644 --- a/Engine.Core/Factory/HierarchyObjectFactory.cs +++ b/Engine.Core/Factory/HierarchyObjectFactory.cs @@ -5,9 +5,11 @@ namespace Syntriax.Engine.Core.Factory; public class HierarchyObjectFactory { + public static IHierarchyObject Instantiate() => Instantiate(); public static T Instantiate(params object?[]? args) where T : class, IHierarchyObject => Instantiate(behaviourController: null, stateEnable: null, args); + public static IHierarchyObject Instantiate(IBehaviourController? behaviourController = null, IStateEnable? stateEnable = null) => Instantiate(behaviourController, stateEnable); public static T Instantiate( IBehaviourController? behaviourController = null, IStateEnable? stateEnable = null,