Simple Animation Component
For more complex scenarios use an animation controller (TODO) instead.
AnimationClip: The animation clip to play.
AnimationMode: How to play the animation:
Once: The animation is played exactly once and then stops.
Loop: The animation is played in an endless loop.
BackAndForth: The animation is played to its end, then it reverses and plays back to the start. Then the cycle repeats.
Speed: The playback speed. A speed of zero pauses playback. A negative speed makes the animation play backwards. The speed can be changed at any time.
RootMotionMode: Selects how root motion is applied to the owning game object.
The component will broadcast the event
ezMsgGenericEvent every time it encounters an animation event in the animation clip. Custom code can listen for these events and trigger relevant game mechanics.