//--------------------------------------------------------------------------------------------- #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)); }
//--------------------------------------------------------------------------------------------- #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)); }