public void UpdateTapRedPoint() { BelleData.CalculateCreateNewBelle(); BelleData.CalculateActiveMatrixIds(); if (BelleCollectRedPoint != null) { BelleCollectRedPoint.SetActive(BelleData.RedPointBelleIds.Count > 0); } if (BelleBattleRedPoint != null) { int count = GetActiveMatrixCount(); BelleBattleRedPoint.SetActive(BelleData.RedPointMatrixIds.Count > 0 && count < 2); } }
public void UpdateBelleTip() { if (m_BelleCountTip == null || !gameObject.activeInHierarchy) { return; } if (BelleData.CalculateActiveMatrixIds().Count == 0 && BelleData.CalculateCreateNewBelle().Count == 0) { m_BelleCountTip.gameObject.SetActive(false); } else { m_BelleCountTip.gameObject.SetActive(true); } // if (BelleData.GetBelleTipCount() > 0) // { // m_BelleCountTip.gameObject.SetActive(true); // } // else // { // m_BelleCountTip.gameObject.SetActive(false); // } }