Lets say we have a player with three weapon slots, and a whole lot of weapon options in the game, and each one fires/works quite differently. Naturally, we give each weapon a script. The player has 3 buttons corresponding to his 3 weapon slots, so they can be fired at will.
So what is the best way to "load" a weapon into an empty weapon slot when it acquired, then find and perform that weapon's function when that corresponding button is pushed? I KNOW Unity has an easy way to do this, but I'm totally stumped. I was thinking some kind of Child/Parent hierarchy with prefabs, but I'm not sure.