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