| | |
| | | m_FullLevel.SetActive(false);
|
| | | int toLv = ToLv(ToExpTotal);
|
| | | m_LvNowText.text = "+" + DogZLv.ToString();
|
| | | if (DogZLv == toLv)
|
| | | if (toLv <= DogZLv)
|
| | | {
|
| | | m_LvNextText.text = "+" + (toLv + 1).ToString();
|
| | | m_LvNextText.text = "+" + (DogZLv + 1).ToString();
|
| | | toLv = DogZLv + 1;
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | m_TextAttributesAdd1.gameObject.SetActive(false);
|
| | | m_TextAttributesAdd2.gameObject.SetActive(false);
|
| | | m_ExpNum.text = DogZExp + "/" + DogzEquipConfig.upExpTotal;
|
| | | float value = (float)DogZExp / DogzEquipConfig.upExpTotal;
|
| | | SetExperienceBar(DogZLv, value);
|
| | | if (AttType.Length > 1)
|
| | | {
|
| | | m_TextAttributes1.gameObject.SetActive(true);
|
| | |
| | | int[] AttValueTo = ConfigParse.GetMultipleStr<int>(DogzEquipToConfig.attValue);
|
| | | string strColor = string.Format(Language.Get("DogzGreenText"), ToExpTotal);
|
| | | m_ExpNum.text = DogZExp + strColor + "/" + DogzEquipConfig.upExpTotal;
|
| | | float value= (float)DogZExp / DogzEquipConfig.upExpTotal;
|
| | | SetExperienceBar(DogZLv, value);
|
| | | if (AttType.Length > 1)
|
| | | {
|
| | | m_TextAttributes1.gameObject.SetActive(true);
|
| | |
| | | DogZExp = IudetDogzEquipPlus[1];
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | int GodBeast_Number = 0;
|
| | | int GodBeast_Part = 0;
|
| | | private void SetExperienceBar(int lv,float value)//设置经验条
|
| | | {
|
| | | if (GodBeast_Number != GodBeastNumber || GodBeast_Part != GodBeastPart)
|
| | | {
|
| | | GodBeast_Number = GodBeastNumber;
|
| | | GodBeast_Part = GodBeastPart;
|
| | | m_ExpSlider.stage = lv;
|
| | | m_ExpSlider.delay = 0f;
|
| | | m_ExpSlider.ResetStage();
|
| | | m_ExpSlider.value = value;
|
| | | }
|
| | | else
|
| | | {
|
| | | m_ExpSlider.delay = 0.1f;
|
| | | m_ExpSlider.stage = lv;
|
| | | m_ExpSlider.value = value;
|
| | | }
|
| | | }
|
| | | } |
| | | |
| | | } |