Beispiel #1
0
    protected void SetInterruptResume_State(CStateContainer pStartState, CStateContainer pInterruptedState)
    {
        if (_pCoroutine != null)
        {
            _pOwner.StopCoroutine(_pCoroutine);
        }

        _pCoroutine = _pOwner.StartCoroutine(pStartState.EventStart(pInterruptedState, EStateStartType.Interrupt_Resume, Finish_State));
    }
Beispiel #2
0
    protected void SetStart_State(CStateContainer pStartState, CStateContainer pPrevState, EStateStartType eStateStartType)
    {
        if (_pOwner.gameObject.activeSelf == false)
        {
            return;
        }

        if (_pCoroutine != null)
        {
            _pOwner.StopCoroutine(_pCoroutine);
        }

        _pCoroutine = _pOwner.StartCoroutine(pStartState.EventStart(pPrevState, eStateStartType, Finish_State));
    }