chore: Added Forgotten params args Parameter
This commit is contained in:
parent
5fcf63c5a7
commit
cf2d85765d
|
@ -34,9 +34,9 @@ public class GameManager
|
|||
_gameObjects.Add(gameObject);
|
||||
}
|
||||
|
||||
public T InstantiateGameObject<T>() where T : class, IGameObject
|
||||
public T InstantiateGameObject<T>(params object?[]? args) where T : class, IGameObject
|
||||
{
|
||||
T gameObject = GameObjectFactory.Instantiate<T>();
|
||||
T gameObject = GameObjectFactory.Instantiate<T>(args);
|
||||
_gameObjects.Add(gameObject);
|
||||
return gameObject;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue