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