public void SetCurrentState(STATE_TYPE type) { current = StateType.GetState(type); currentType = type; }