private void BtnStartGame_Click(object sender, EventArgs e) { GetAndSet gs = new GetAndSet(); gs.SetAmmoStartGame(); gs.SetPointNewGame(); gs.GetChoosedScore(); }
public void PointsCount() { var nPoint = gs.GetNpcPoints(); var pPoint = gs.GetPlayerPoints(); var choosedScore = gs.GetChoosedScore(); if (nPoint == choosedScore) { NpcWin win = new NpcWin(); win.Show(); gs.StartNewGame(); } if (pPoint == choosedScore) { PlayerWin win = new PlayerWin(); win.Show(); gs.StartNewGame(); } }