Basically I have the main player which is a ship. The player uses a player script that gives it all the movement and variables through the inspector.
On top of the player (in-game, but is a child of Player in the editor) is a cannon, and it’s only purpose is to point towards the mouse pointer.
I didn’t want to make an entire script for it just so it could point towards the mouse, so I tried making a new class for it in the Player script, but I realized that I had no way to differentiate the cannon from the player, thus it inherited all of the players code and it required me to reference all of the serialized variables in the inspector.
Is there any way to code a simple point-to-mouse method for my cannon without making an entirely new script? Thanks!