private void AdvanceOnDisable() { if (AdvancePlane != null) { AdvancePlane.SetActive(false); } }
public void Advanced() { Tab_Belle belleTabC = BelleInfoWindow.Instance().CurSellectedBelleData; if (belleTabC != null && BelleData.OwnedBelleMap.ContainsKey(belleTabC.Id)) { if (BelleData.OwnedBelleMap[belleTabC.Id].colorLevel == 5 && BelleData.OwnedBelleMap[belleTabC.Id].subLevel == 9) { GUIData.AddNotifyData2Client(false, "#{11321}"); return; } } int have = 0; int need = 0; GetBelleFragmentNum(out have, out need); if (have >= need) { Tab_Belle belleTab = BelleInfoWindow.Instance().CurSellectedBelleData; if (belleTab == null || !BelleData.OwnedBelleMap.ContainsKey(belleTab.Id)) { return; } Tab_BelleLevelup belleLevL = TableManager.GetBelleLevelupByID(belleTab.Id * Belle.ID_FACTOR + BelleData.OwnedBelleMap[belleTab.Id].orgLevel, 0); if (belleLevL.GetConsumeTypebyIndex(1) == 2) { MessageBoxLogic.OpenCostBox(StrDictionary.GetClientDictionaryString("#{11467}"), "", StrDictionary.GetClientDictionaryString("#{11466}"), StrDictionary.GetClientDictionaryString("#{11312}"), "qian1", "X" + belleLevL.GetConsumeNumbyIndex(1), AdvanceOK, null); } } else { if (AdvancePlane != null) { AdvancePlane.SetActive(!AdvancePlane.activeInHierarchy); } } if (BelleController.Instance() != null) { if (BelleController.Instance().FTEIndex == 3) { BelleController.Instance().DoFTE(4); } else if (BelleController.Instance().FTEIndex == 5) { BelleController.Instance().DoFTE(6); } } }
public void UpdateAdvanceBelleFragmentInfo() { int have = 0; int need = 0; GetBelleFragmentNum(out have, out need); if (have >= need) { if (AdvancePlane != null) { AdvancePlane.SetActive(false); } } m_curBelleItemCount.text = have.ToString() + "/" + need.ToString(); if (need > 0) { BelleFragmentUS.transform.localScale = new Vector3((float)have / need, 1f, 1f); } UpdateBelleFragmentInfo(); ReFreshBelleState(); }