Exemplo n.º 1
0
    public void SetStateButton() // -> UpdateData - CheckAvailableUpdate()
    {
        if (updateData == null)
        {
            updateData = UpdateData.In.Updates[name];
        }

        if (updateData.CurrentUpdate < updateData.MaxUpdate && GameManager.In.Coins >= CurrentCostUpdate)
        {
            UIChangeButtonActive();
        }
        else
        {
            UIChangeButtonInActive();
        }
    }
Exemplo n.º 2
0
 private void Start()
 {
     updateData = UpdateData.In.Updates[name];
     UIUpdateData();
 }