Right now I have a Player scene in my project. Within this scene I also have an instanced scene called "weapon".
I plan on having multiple weapon types for my project and these weapons would have different values such as fire rate, bullet type, and ammo capacity.
I am curious to know what the best method for organizing these various weapon types is? Right now I have one "weapon" scene which has all my weapon types (Position2ds) as children. Each weapon has its own values (I have export variables on each one) so that I can easily edit them in the weapon scene.
I think the best way to go about actually firing a weapon would be to have a variable in the player script that determines which gun is currently being used. I would then be able to call a fire function and set the proper timer values so that I can instance each bullet properly.
Other methods I have seen people use are Dictionaries and the use of separate scenes for each weapon. Would this be a good way of achieving my goal?