| | |
| | | bool containsDivision = kingTreasureModel.TryGetDivision(model.selectedTreasure, history.rewardLevel, out division);
|
| | | m_ContainerBaseProperty.gameObject.SetActive(containsDivision && division.basePropertys.Count > 0);
|
| | | m_ContainerSpecialProperty.gameObject.SetActive(containsDivision && division.specialPropertys.Count > 0);
|
| | | var index = 0;
|
| | | if (containsDivision && division.basePropertys.Count > 0)
|
| | | {
|
| | | var index = 0;
|
| | | foreach (var key in division.basePropertys.Keys)
|
| | | {
|
| | | if (index < m_BasePropertys.Length)
|
| | |
| | | }
|
| | | index++;
|
| | | }
|
| | | for (int i = index; i < m_BasePropertys.Length; i++)
|
| | | {
|
| | | m_BasePropertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | for (int i = index; i < m_BasePropertys.Length; i++)
|
| | | {
|
| | | m_BasePropertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | index = 0;
|
| | | if (containsDivision && division.specialPropertys.Count > 0)
|
| | | {
|
| | | var index = 0;
|
| | | foreach (var key in division.specialPropertys.Keys)
|
| | | {
|
| | | if (index < m_SpecialPropertys.Length)
|
| | |
| | | }
|
| | | index++;
|
| | | }
|
| | | for (int i = index; i < m_SpecialPropertys.Length; i++)
|
| | | {
|
| | | m_SpecialPropertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | for (int i = index; i < m_SpecialPropertys.Length; i++)
|
| | | {
|
| | | m_SpecialPropertys[i].gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | private void Goto()
|
| | | {
|
| | | //--todo 跳转至赛季目标
|
| | | WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)278);
|
| | | }
|
| | |
|
| | | }
|