public void SetText() { argentText.text = Argent.ToString(); argileText.text = Argile.ToString(); pierreText.text = Pierre.ToString(); boisText.text = Bois.ToString(); verreText.text = Verre.ToString(); papyrusText.text = Papyrus.ToString(); PointVictoireText.text = PointVictoire.ToString(); PlayerAdverse.argentText.text = PlayerAdverse.Argent.ToString(); PlayerAdverse.argileText.text = PlayerAdverse.Argile.ToString(); PlayerAdverse.pierreText.text = PlayerAdverse.Pierre.ToString(); PlayerAdverse.boisText.text = PlayerAdverse.Bois.ToString(); PlayerAdverse.verreText.text = PlayerAdverse.Verre.ToString(); PlayerAdverse.papyrusText.text = PlayerAdverse.Papyrus.ToString(); PlayerAdverse.PointVictoireText.text = PlayerAdverse.PointVictoire.ToString(); }
private void btnAcheter_Click(object sender, EventArgs e) { #region Achat de rune 1 if (Rune1Active == true) { if (Argent < PrixRune1) { MessageBox.Show("Pas Assez d'argent"); return; } else { Argent -= PrixRune1; lbExperience.Text = "Argent : " + Argent.ToString(); Rune1Acheter(); Rune1Active = false; pbAchat.Image = null; btnAcheter.Enabled = false; } } #endregion #region Achat de rune 2 if (Rune2Active == true) { if (Argent < PrixRune2) { MessageBox.Show("Pas Assez d'argent"); return; } else { Argent -= PrixRune2; lbExperience.Text = "Argent : " + Argent.ToString(); Rune2Acheter(); Rune2Active = false; pbAchat.Image = null; btnAcheter.Enabled = false; } } #endregion }
private void InitializeArgent() { argentText.text = Argent.ToString(); }