Player Weapon Swap
To create the weapon swap mechanic,
I used scriptable objects to store information for each
weapon.
These scriptable objects contain data such as the weapon name,
ID number, model, and more, including an associated action to be
used with that weapon.
Each action is another scriptable object containing the action
ID number that must match the weapon ID, and the animation
associated with the action. This way, each weapon has its own
unique action which determines what the player does when
handling that weapon (swing the pickaxe, place the dynamite).