I’m looking for a way to receive all AnimationEvents with one method.
Right now I need to create named method for each event in my animations like void DoSomethingEvent(AnimationEvent e) for a DoSomethingEvent in my animation.
I would like to have a method i.e. void OnAnimationEventReceived(string eventName, AnimationEvent e) which will receive all events.
Is there a way to do it?