Hey,
Recently I've been digging deeper into architectures, but one question stuck me about visual effects. What I call "effects" is any visual cue that aims to improve QoL, the juice of the game or both.
For instance, right now, I have a project where I roll dice. I want the result of the dice to pop up above it when it stops rolling, then does a little animation. The animation part is not the problem here.
Is there any advice on managing these kinds of things ? Right now the dice each have their ResultAnimation script, but the way i've done it is instantiating an object that would show the number and play the animation when the result rolls. However, having that script on all dice doesn't seem that much scalable and a good practice.
Isn't there any commonly used way to centralize this ? Making it generic enough for anything to play any effect ? If I want to reference sprites for animations or something, having them all on each dice must not be a good way of doing it, right ?