Hi, I have a question. I put the case, I have many coins (each with particles and sound) and I do not really know that it would be more optimal.
1 - put each coin its particle and sound and a script that is active in the OnTriggerEnter2D to activate the particles and sound.
2- Put it in the player class and add a particle of the coin and sound and every time I pick up a coin active fx from the player.
3- Same as 2, but in a GameManager class or something like that
I think the most optimal...
[Question] what is the best way to manage logic of collectable objects?
1 - put each coin its particle and sound and a script that is active in the OnTriggerEnter2D to activate the particles and sound.
2- Put it in the player class and add a particle of the coin and sound and every time I pick up a coin active fx from the player.
3- Same as 2, but in a GameManager class or something like that
I think the most optimal...
[Question] what is the best way to manage logic of collectable objects?