Exemple #1
0
    private void UpdateOthersButtons()
    {
        ButtonBuySwords btnSwords = FindObjectOfType <ButtonBuySwords>();

        if (btnSwords != null)
        {
            btnSwords.RefreshData();
        }
        ButtonBuyPower btnPower = FindObjectOfType <ButtonBuyPower>();

        if (btnPower != null)
        {
            btnPower.Refresh();
        }
    }
Exemple #2
0
    private void UpdateOthersButtons()
    {
        ButtonBuyLives btnLives = FindObjectOfType <ButtonBuyLives>();

        if (btnLives != null)
        {
            btnLives.RefreshData();
        }
        ButtonBuySwords btnSwords = FindObjectOfType <ButtonBuySwords>();

        if (btnSwords != null)
        {
            btnSwords.RefreshData();
        }
    }