public void AddPrefab<T, C>(C args) where T : Prefab<C> where C : PrefabArgs { T.Create(this, args); }
public void AddPrefab<T, C>(C args) where T : Prefab<C> where C : PrefabArgs { T.Create(this, args); }
where each thing that inherits Prefab has a PrefabArgs generic type thing, like, a Prefab "player" could be Player<PlayerPrefabArgs>, and you can call this method like
AddPrefab<Player>(new PlayerPrefabArgs());
AddPrefab<Player>(new PlayerPrefabArgs());
but the problem im having is this just isnt working how id like it to, i have to do
AddPrefab<Player, PlayerPrefabArgs>(...);
AddPrefab<Player, PlayerPrefabArgs>(...);
like it doesnt know how to infer the type or something