Esempio n. 1
0
    public void UpdateBtn(GameState game)
    {
        int price = farmType.GetPrice(game.GetFarmCount(farmType));

        buildFarmBtn.interactable = (game.GetCookieNum() >= price);
        priceText.text            = FormatString.FormatNumber(price);
    }
Esempio n. 2
0
 // Update is called once per frame
 void UpdateCookieNum(GameState gameState)
 {
     text.text = "Cookie " + FormatString.FormatNumber((int)gameState.GetCookieNum());
 }