Пример #1
0
 private void ReturnButton_Click(object sender, EventArgs e)
 {
     RestTextBox.Text    = CoinAmount.ToString("n");
     CoinAmount          = 0;
     DisplayTextBox.Text = "Insert a coin! Then choose product.";
 }
Пример #2
0
 public void EarnCoin(int amount)
 {
     this.CoinAmount += amount;
     CoinText.text    = CoinAmount.ToString();
 }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        coinText = GameObject.Find("Coin").GetComponentInChildren <Text>();

        coinText.text = CoinAmount.ToString();
    }
Пример #4
0
 private void Start()
 {
     CoinText.text = CoinAmount.ToString();
 }