| | |
| | | m_Floor.text = config.floorName; |
| | | var isLastFloor = model.IsTopFloor(model.currentFloor); |
| | | |
| | | if (model.currentFloor == model.highestPassFloor) |
| | | { |
| | | m_Reward.gameObject.SetActive(true); |
| | | m_UnLockEquipPlace.gameObject.SetActive(false); |
| | | m_Reward.SetItem(config.rewardIdsLevelS[0], config.rewardCountsLevelS[0]); |
| | | |
| | | var itemConfig = Config.Instance.Get<ItemConfig>(config.rewardIdsLevelS[0]); |
| | | m_Description.text = Language.Get("JadeDynastyNameReward", itemConfig.ItemName); |
| | | } |
| | | else |
| | | if (model.currentFloor > model.highestPassFloor) |
| | | { |
| | | var isSpecialFloor = config.unLockEquipPlace > 0; |
| | | if (isSpecialFloor) |
| | |
| | | |
| | | m_Description.text = config.specialRewardDescription; |
| | | } |
| | | else |
| | | { |
| | | m_Reward.gameObject.SetActive(true); |
| | | m_UnLockEquipPlace.gameObject.SetActive(false); |
| | | m_Reward.SetItem(config.rewardIdsLevelS[0], config.rewardCountsLevelS[0]); |
| | | |
| | | var itemConfig = Config.Instance.Get<ItemConfig>(config.rewardIdsLevelS[0]); |
| | | m_Description.text = Language.Get("JadeDynastyNameReward", itemConfig.ItemName); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |