예제 #1
0
 public Transition(AnimationState to, IEnumerable <Func <AnimationController, bool> > conditions)
 {
     To          = to;
     _conditions = conditions ?? Enumerable.Empty <Func <AnimationController, bool> >();
 }
예제 #2
0
 public void SetCurrentState(AnimationState state)
 {
     _currentState = state;
     _currentState?.Enter(_animationComponent);
 }
예제 #3
0
 public void AddTransition(AnimationState to, IEnumerable <Func <AnimationController, bool> > conditions) =>
 _transitions.Add(new Transition(to, conditions));