Esempio n. 1
0
    void updateClickability()
    {
        //Verify if economy manager exists
        if (!economyManager)
        {
            return;
        }

        //First buy the object (if false you can't buy it, so animate a change in the text to red)
        if (!economyManager.can_buy(actual_cost))
        {
            clicking_button.interactable = false;
            return;
        }

        clicking_button.interactable = true;
    }