I ended up refactoring the code for the firing of the player and enemies into a seperate "Gun" component that could be attached to each of them, much cleaner!