Esempio n. 1
0
    public void BuyGold()
    {
        float currentGoldPrice = priceManager.GetGoldPrice();

        try {
            Withdraw(currentGoldPrice);
            goldNumber++;
        } catch {
            print("Fond insuffisant");
        }
    }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     goldPriceText.text = "Or : " + priceManager.GetGoldPrice();
 }