AnimationComponent
public class AnimationComponent : MonoBehaviour, IEntityComponent
{
public string AnimationSetName;
//public Animator animator;
public AnimationManager animationManager = new AnimationManager();
//...
This component holds reference to an AnimationManager. The AnimationManager can use either the built Unity Animator or the animation system I built for this project. Therefore AnimationComponent is the wrapper class around that so you can deal with either choice the same way.
Methods
public void UpdateComponent()
Calls the AnimationManager’s update function. That’s it. Add more if you need more