Pros and Cons of using a mediator

As we are calling animator in the code,
what if let’s say if we make a mediator that handles all the animations in the code, and we just call its specific method that we need for animation, will it be feasible, what kind of advantages and disadvantages can be faced ?

1 Like

Sorry for the delay on this, somehow it was marked as read in my list, so it didn’t get picked up in my feed.

While it could be possible to create some sort of AnimatorMediator class, I’m not entirely convinced it would be advantageous. Looking at the structure of the Animator, the parameters themselves serve as a mediator for the Animation connections.

Privacy & Terms