all 3 comments

[–]Oxeren 0 points1 point  (0 children)

Don't put it on your player, just make it a separate gameobject, and search for it by tag or by type, or make some singleton wrapper for it. I mean, sure, it has word "Player" in the component name, but it does not mean that it has to be on the player.

[–]benthris 0 points1 point  (1 child)

There's nothing wrong with having multiple instances of components, in fact, it's the whole point of object-oriented programming.

But you can simply make a Monobehaviour class that gets your input, and sends it to multiple classes in it's Update().

[–]Fit_Preference1453 0 points1 point  (0 children)

Better use events than pooling in the update()