revert: refactor: ITransformWithGameObject
This reverts commit f96c58cbd4
.
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
Reference in New Issue
Block a user