chore: Added Forgotten params args Parameter

This commit is contained in:
Syntriax 2023-11-24 09:45:10 +03:00
parent 5fcf63c5a7
commit cf2d85765d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}