public AnimatorComponent(string name, AnimationController <TState> controller) : base(name) { Controller = controller ?? throw new ArgumentNullException(nameof(controller)); currentNode = null; coroutine = null; }
private void UpdateNode(TState state) { if (state == null) { return; } currentNode = Controller.GetNode(state); coroutine = currentNode.Generate((TOwner)Owner); }