Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public AssemblePartTypePresetData(int typeModelID)
        {
            _partsTypeMeta = AssembleModule.GetAssemblePartTypeByKey(typeModelID);

            if (_partsTypeMeta != null)
            {
                ModelPath = _partsTypeMeta.ModelPath;
                TypeID    = _partsTypeMeta.TypeID;
            }
            partsPropertyConfig = AssembleModule.GetPartsPropertyConfigData(typeModelID);
        }