Example #1
0
 private void buysecret_Click(object sender, EventArgs e)
 {
     if (player.getGold() > 3)
     {
         player.purchaseSecret();
         scoreBox.Text = "Total Score: " + player.getScore();
     }
     else
     {
         status.Text = "Invalid purchase. Please obtain 3 coins or more.";
         Thread.Sleep(3000);
         status.Text = "Game Status:                          ";
     }
 }