So i have a firearm class/scene that i inherit from to make new guns and i want to implement for now a simple inventory that stores ammo and weapons.
So i'm wondering Should i have the inventory inside of the player script or should i implement it somewhere else like in a singleton?
The guns will need to interact with the inventory to reload ammo i suppose, so having easy access to the inventory by making it a singleton, could maybe be good? Or should i have the inventory in the Player script and then just have a reference variable to the player in the Gun script so that the Guns have access to the ammo in the inventory?
Not sure what implementation would be good