private void BtnShotgun_Click(object sender, EventArgs e) { GameCode gc = new GameCode(); GetAndSet gs = new GetAndSet(); var ammoP = LblAmmoCountPlay.Text; if (ammoP == "") { MessageBox.Show(@"Du måste starta spelet"); } else { var x = gs.GetPlayerAmmo(); if (x < 3) { NoBullets no = new NoBullets(); no.Show(); } else { var n = gc.Npc(); gc.PlayerShotgunsComputer(n); } } }
private void BtnLoad_Click(object sender, EventArgs e) { GameCode gc = new GameCode(); if (LblAmmoCountPlay.Text == "") { MessageBox.Show(@"Du måste starta spelet"); } else { var x = gc.Npc(); gc.PlayerLoadsComputer(x); } }