public void CleanUp() { m_activeCount = 0; m_belleGetBits = BelleConfig.GetBelleStringBitByBelleTable(); m_belleCanEvoBits = BelleConfig.GetBelleStringBitByBelleTable(); m_belleItemBits = BelleConfig.GetBelleStringBitByBelleTable(); m_matrixUnlockBits = BelleConfig.GetBelleStringBitByBelleMatrix(); }
public void OnClickItem() { if (m_NewPlayerGuide_Step == 1) { NewPlayerGuidLogic.CloseWindow(); } if (null != m_parentWindow) { m_parentWindow.OnClickBelleItem(gameObject); } if (m_NewPlayerGuide_Step == 1) { if (BelleOwnWindow.Instance()) { if (BelleOwnWindow.Instance()) { // 弃用 //BelleOwnWindow.Instance().NewPlayerGuide(1); } } m_NewPlayerGuide_Step = -1; } //清理红点提示 if (m_redTipObj.gameObject.activeSelf) { BelleConfig.SetBelleGetBitsByBit(m_belleId, '0'); m_redTipObj.SetActive(false); BelleData.m_belleActiveCount--; if (BelleData.m_belleActiveCount < 0) { BelleData.m_belleActiveCount = 0; } if (MenuBarLogic.Instance() != null) { MenuBarLogic.Instance().UpdateBelleTip(); } } }
public void UpdateEvalutionInfo() { if (null == BelleInfoWindow.Instance()) { return; } Tab_Belle belleTab = BelleInfoWindow.Instance().CurSellectedBelleData; if (null == belleTab) { return; } Belle curBelleData = null; if (BelleData.OwnedBelleMap.ContainsKey(belleTab.Id)) { curBelleData = BelleData.OwnedBelleMap[belleTab.Id]; } if (null == curBelleData) { return; } int belleSubItemId = belleTab.BelleItemID; int belleTotalSubCount = 0; int belleCoinCount = 0; Tab_BelleLevelup curTabBelleLevelup = TableManager.GetBelleLevelupByID(curBelleData.id * Belle.ID_FACTOR + curBelleData.orgLevel, 0); if (null != curTabBelleLevelup && curTabBelleLevelup.getConsumeTypeCount() > 0) { belleTotalSubCount = curTabBelleLevelup.GetConsumeNumbyIndex(0); belleCoinCount = curTabBelleLevelup.GetConsumeNumbyIndex(1); } if (GameManager.gameManager.PlayerDataPool == null) { return; } Games.Item.GameItemContainer backPack = GameManager.gameManager.PlayerDataPool.BackPack; if (backPack == null) { return; } int belleSubItemCount = backPack.GetItemCountByDataId(belleSubItemId); int have = 0; int need = 0; GetBelleFragmentNum(out have, out need); m_curBelleItemCount.text = have.ToString() + "/" + need.ToString(); if (need > 0) { BelleFragmentUS.transform.localScale = new Vector3((float)have / need, 1f, 1f); } Tab_CommonItem commItem = TableManager.GetCommonItemByID(belleTab.BelleItemID, 0); if (commItem != null) { m_curBelleItemIcon.spriteName = commItem.Icon; } if (belleSubItemCount < belleTotalSubCount) { m_curBelleEvaluteLab.text = StrDictionary.GetClientDictionaryString("#{10812}"); messageBtn.functionName = "OnGetItem"; evoRedTipObj.gameObject.SetActive(false); if (BelleConfig.GetBelleEvoBitByIndex(belleTab.Id)) { BelleConfig.SetBelleEvoCountByBit(belleTab.Id, '0'); } } else { m_curBelleEvaluteLab.text = StrDictionary.GetClientDictionaryString("#{10813}"); messageBtn.functionName = "OnEvolutionClick"; evoRedTipObj.gameObject.SetActive(!curBelleData.IsMaxLevel()); } BelleData.m_belleEvoCount = BelleConfig.GetBelleEvoCount(); //最大等级的一个判断 m_EvaluBtnObj.SetActive(!curBelleData.IsMaxLevel()); m_EvaluMaxLabel.gameObject.SetActive(curBelleData.IsMaxLevel()); }