Called when state tree triggers transitions. This method is called during transition handling, before state's tick and event transitions are handled. Note: the method is called only if bShouldAffectTransitions is set.