Example #1
0
        /// <summary>
        /// Finalizes the opening procedure of a state.
        /// </summary>
        private void EnterFinishedHandler()
        {
            AppStateEnterSignal.Dispatch(_currentState.GetType());

            _currentTransition = TransitionType.None;

            //if there is other state in queue immediately close current state to start new when transition is finished.
            if (_nextStates.Count > 0)
            {
                CloseCurrentState();
            }
        }