public void RefreshTotalExp() { List <int> expDetails = Module_Equip.GetReallyExpDetail(data.GetCurrentTotalExp(), m_swallowExp, m_maxLimitIntentifyInfo); int totalExp = expDetails.GetValue(0); m_swallowExp = expDetails.GetValue(1); m_swallowText.text = m_swallowExp.ToString(); m_previewIntentifyInfo = moduleEquip.GetLimitIntenLevelByExp(equipType, data.GetIntentyLevel(), totalExp, data.HasEvolved()); RefreshCoinCost(totalExp); }
private void RefreshDetail() { RefreshSwallowDisplay(); List <int> expDetails = Module_Equip.GetReallyExpDetail(data.GetCurrentTotalExp(), swallowExp, m_limitIntentifyInfo); totalExp = expDetails.GetValue(0); swallowExp = expDetails.GetValue(1); Util.SetText(m_swallowExpText, Util.Format(ConfigText.GetDefalutString(TextForMatType.EquipIntentyUI, 15), swallowExp)); m_previewIntentifyInfo = moduleEquip.GetLimitIntenLevelByExp(equipType, data.GetIntentyLevel(), totalExp, data.HasEvolved()); int level = data.GetIntentyLevel(); int nextLevel = m_previewIntentifyInfo == null ? level : m_previewIntentifyInfo.level; m_levelPreview.RefreshDetail(level, nextLevel, false); RefreshBar(); RefreshCoinCost(totalExp); }