I’m making a first person game, and want to create pickup objects for the player to collect.
Ideally, I would be able to call something like:
PickupManager.CreatePickup(PickupType.ROCK, transform.position);
Also, I’d like to specify the prefabs to create by dragging prefabs onto the manager script variables via the inspector.
It seems if I create a static class, then I can’t specify prefab types via the inspector (because the vars are static and not exposed).
If I create a singleton with a GetInstance() function, the instance doesn’t seem to inherit the vars I assign via the inspector.
Should I be using a static class? A singleton? Do I need to attach a script to a gameobject?