Exemplo n.º 1
0
    //---------------------------------------------------------------------------------------------
    #endregion

    #region "OnCode"

    private void StartCurrentState
    (
        StateMachine a_nextState,
        KDAgentStates a_agentState,
        List <KD2DTile> a_steps
    )
    {
        StopAllCoroutines();
        m_currentState = a_nextState;
        States         = a_agentState;
        StartCoroutine(m_currentState(a_steps));
    }
Exemplo n.º 2
0
    //---------------------------------------------------------------------------------------------
    #endregion

    #region "OnCode"

    private void StartCurrentState
    (
        StateMachine a_nextState, 
        KDAgentStates a_agentState, 
        List<KD2DTile> a_steps
    )
    {
        StopAllCoroutines();
        m_currentState = a_nextState;
        States = a_agentState;
        StartCoroutine(m_currentState(a_steps));
    }