/// <summary> /// This ends the current state permanantly and changes to a new state. /// /// </summary> /// <param name="nextState"></param> public void changeState(BotAIState nextState) { previousState = currentState; currentState = nextState; }