public void changeState(enum_States newStates, Dictionary<string,object> data ) { nextState = States[(int)newStates]; nextState.setData(data) ; }