| | |
| | | {
|
| | | curComposeEquipIndex = -1;
|
| | | }
|
| | | List<ComposeWinModel.ComposeThirdTypeData> thirdTypeDatas = null;
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeDatas);
|
| | | if (thirdTypeDatas != null)
|
| | | {
|
| | | for (int i = 0; i < thirdTypeDatas.Count; i++)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(thirdTypeDatas[i].itemCompound.makeID[0]);
|
| | | if (itemConfig.EquipPlace == selectEquipPlace)
|
| | | {
|
| | | curComposeEquipIndex = i;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void CreateTypeCell()
|
| | |
| | |
|
| | | if (curThirdType != 0)
|
| | | {
|
| | | |
| | | CreateEquipTypeLineCell();
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeData);
|
| | | if(thirdTypeData != null)
|
| | | {
|
| | |
| | | dismantleText.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | List<ComposeWinModel.ComposeThirdTypeData> thirdTypeDatas = null;
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeDatas);
|
| | | if(thirdTypeDatas != null)
|
| | | {
|
| | | for(int i = 0; i < thirdTypeDatas.Count; i++)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(thirdTypeDatas[i].itemCompound.makeID[0]);
|
| | | if (itemConfig.EquipPlace == selectEquipPlace)
|
| | | {
|
| | | curComposeEquipIndex = i;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | CreateEquipTypeLineCell();
|
| | | }
|
| | | else
|
| | | {
|