示例#1
0
        /// <summary>
        /// Opens a new state. Opening procedure is finished by calling SetTransitionInFinished.
        /// </summary>
        /// <param name="state">State to be opened.</param>
        protected virtual void StartState(IAppState state)
        {
            _currentState = state;
            _currentState.Init(this);

            _currentTransition = TransitionType.TransitionIn;

            state.TransitionIn();
        }