Suppose I have 50 coins on level (all instances of one game object).
What is best for performance?
- Attach sound component to this “coin” game object (then all 50 instances will have this component) or
- Attach sound component to some “sound player” game object, which have only one instance.
Also, is there any perfomance difference when we send messages from one component (script) to another (sound, sprite) or when we send messages to component attached to different game object (maybe even with different socket:)?