/// <summary> /// Switchs the normal ot star. /// </summary> /// <param name="isNormal">是否普通强化</param> private void SwitchNormalOtStar(bool isNormal) { NormalOrStarGO[0].SetActive(m_isNormal); NormalOrStarGO[1].SetActive(!m_isNormal); var equipItemData = ItemDataManager.Instance.GetItemData(CurrItemFielInfo.LocalItemData._goodID) as EquipmentData; if (isNormal) { var strenLev = CurrItemFielInfo.equipmentEntity.EQUIP_FIELD_STRONGE_LEVEL; //bool enoughToStren; var consume = EquipItem.NormalStrengthenConsume(this.CurrItemFielInfo, out m_enoughToStren); StrenConsumeValue.text = "X" + (m_enoughToStren ? consume : consume.SetColor(TextColorType.Red)); if (strenLev < equipItemData.NormalStrenPercent.Length) { StrenRateValue.text = equipItemData.NormalStrenPercent[strenLev].ToString(); } } else { var starLev = CurrItemFielInfo.equipmentEntity.EQUIP_FIELD_START_LEVEL; var consume = equipItemData._StartStrengthCost[starLev]; var consumeMat = ItemDataManager.Instance.GetItemData(consume.ItemID_1); string consumeValue = consume.Value_1.ToString(); m_enoughToStren = ContainerInfomanager.Instance.GetItemNumber(consume.ItemID_1) >= consume.Value_1; string displayValue = "x" + consumeValue; StarConsumeValue.text = (m_enoughToStren ? displayValue : displayValue.SetColor(TextColorType.Red)); if (starLev < equipItemData.StarUpPercent.Length) { StarRateValue.text = equipItemData.StarUpPercent[starLev].ToString(); } string matName = LanguageTextManager.GetString(consumeMat._szGoodsName); StarMatName.text = (m_enoughToStren ? matName : matName.SetColor(TextColorType.Red)); } }