public static AssemblePartsType GetAssemblePartTypeByKey(int modelTypeID) { AssemblePartsType type = null; AssemblePartsTypeDic.TryGetValue(modelTypeID, out type); if (type == null) { Debug.LogError("GetAssemblePartType Error! modelTypeID=" + modelTypeID); } return(type); }
public AssemblePartTypePresetData(int typeModelID) { _partsTypeMeta = AssembleModule.GetAssemblePartTypeByKey(typeModelID); if (_partsTypeMeta != null) { ModelPath = _partsTypeMeta.ModelPath; TypeID = _partsTypeMeta.TypeID; } partsPropertyConfig = AssembleModule.GetPartsPropertyConfigData(typeModelID); }