示例#1
0
    private void UpdateOthersButtons()
    {
        ButtonBuyLives btnLives = FindObjectOfType <ButtonBuyLives>();

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

        if (btnSwords != null)
        {
            btnSwords.RefreshData();
        }
    }
示例#2
0
    private void UpdateOthersButtons()
    {
        ButtonBuyLives btnLives = FindObjectOfType <ButtonBuyLives>();

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

        if (btnPower != null)
        {
            btnPower.Refresh();
        }
    }