private void UpdateOthersButtons() { ButtonBuySwords btnSwords = FindObjectOfType <ButtonBuySwords>(); if (btnSwords != null) { btnSwords.RefreshData(); } ButtonBuyPower btnPower = FindObjectOfType <ButtonBuyPower>(); if (btnPower != null) { btnPower.Refresh(); } }
private void UpdateOthersButtons() { ButtonBuyLives btnLives = FindObjectOfType <ButtonBuyLives>(); if (btnLives != null) { btnLives.RefreshData(); } ButtonBuySwords btnSwords = FindObjectOfType <ButtonBuySwords>(); if (btnSwords != null) { btnSwords.RefreshData(); } }