revert: refactor: ITransformWithGameObject

This reverts commit f96c58cbd4.
This commit is contained in:
2024-02-06 12:04:51 +03:00
parent c767e1e856
commit f729cdc0a8
5 changed files with 29 additions and 47 deletions

View File

@@ -9,7 +9,7 @@ public class GameObjectFactory
=> Instantiate<T>(transform: null, behaviourController: null, stateEnable: null, args);
public T Instantiate<T>(
ITransformWithGameObject? transform = null,
ITransform? transform = null,
IBehaviourController? behaviourController = null,
IStateEnable? stateEnable = null,
params object?[]? args
@@ -18,7 +18,7 @@ public class GameObjectFactory
{
T gameObject = TypeFactory.Get<T>(args);
transform ??= TypeFactory.Get<TransformWithGameObject>();
transform ??= TypeFactory.Get<Transform>();
behaviourController ??= TypeFactory.Get<BehaviourController>();
stateEnable ??= TypeFactory.Get<StateEnable>();