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