I want to subclass “Weapon” as a “Cannon” and set some default values in the Cannon class such as fire rate, damage, and so on. I want to be able to add a Cannon to a GameObject and have it use the Cannon’s default values in the inspector, not the generic Weapon’s values. Per this post, I understand that this is not possible…
As a second best alternative, is there any way to hide those values in the inspector if it is a Cannon, but have them still accessible if it is a weapon.
I want to do this because if I am setting values in the Start() function of the Cannon (seems to be the best option), the values in the inspector are useless and only serve to confuse the developer. I still want the concrete Weapon class usable as is though for testing and playing.