| | |
| | | } |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | var job = PlayerDatas.Instance.baseData.Job; |
| | | if (count == 0) |
| | | behaviour.gameObject.SetActive(false); |
| | | |
| | | switch (count) |
| | | { |
| | | case 2: |
| | |
| | | } |
| | | ActiveSuitString = behaviour.GetContent(); |
| | | break; |
| | | default: |
| | | behaviour.gameObject.SetActive(false); |
| | | break; |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | var beforeConfig = EquipStarConfig.Get(model.equipPosition.x, model.equipPosition.y, model.star - 1); |
| | | var nowConfig = EquipStarConfig.Get(model.equipPosition.x, model.equipPosition.y, model.star); |
| | | |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | if (beforeConfig == null || beforeConfig.StarAttrInfo.Length != nowConfig.StarAttrInfo.Length) |
| | | { |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | behaviour.DisplayStarProperty(model.star, nowConfig.StarAttrInfo[nowConfig.StarAttrInfo.Length - 1]); |
| | | } |
| | | else |
| | | behaviour.gameObject.SetActive(false); |
| | | } |
| | | |
| | | private void DisplayGemHole() |
| | | { |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | if (model.star == 2 || model.star == 5) |
| | | { |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | behaviour.DisplayGemHole(model.star); |
| | | } |
| | | else |
| | | behaviour.gameObject.SetActive(false); |
| | | } |
| | | |
| | | private void DisplayStrengthLevel() |
| | |
| | | var type = EquipStrengthModel.GetEquipStrengthType(model.equipPosition.y); |
| | | var beforeLevel = strengthModel.GetEquipLevelMax(type, model.star - 1); |
| | | var nowLevel = strengthModel.GetEquipLevelMax(type, model.star); |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | if (beforeLevel != nowLevel) |
| | | { |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | behaviour.DisplayStrengthLevelLimit(model.star, nowLevel); |
| | | } |
| | | else |
| | | behaviour.gameObject.SetActive(false); |
| | | } |
| | | |
| | | private void DisplayTrainLevel() |
| | |
| | | var type = EquipTrainModel.GetTrainType(model.equipPosition.y); |
| | | var beforeConfig = WashLevelMaxConfig.Get(type, model.star - 1); |
| | | var nowConfig = WashLevelMaxConfig.Get(type, model.star); |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | if (beforeConfig == null || beforeConfig.levelMax != nowConfig.levelMax) |
| | | { |
| | | var behaviour = GetStarSuccessActiveItemBehaviour(); |
| | | behaviour.DisplayTrainLevelLimit(model.star, nowConfig.levelMax); |
| | | } |
| | | else |
| | | behaviour.gameObject.SetActive(false); |
| | | } |
| | | |
| | | private EquipStarSuccessActiveItemBehaviour GetStarSuccessActiveItemBehaviour() |