Example #1
0
 /// <summary>
 /// Xử lý kết thúc
 /// </summary>
 public void Game_Over()
 {
     if (networker._identification == 0)
     {
         if (tank1.Died == true)
         {
             networker.Send("gameover;lose");
             e2.Show();
             e2.Get(this);
         }
         if (tank2.Died == true)
         {
             networker.Send("gameover;win");
             e.Show();
             e.Get(this);
         }
     }
     if (networker._identification == 1)
     {
         if (tank1.Died == true)
         {
             networker.Send("gameover;win");
             e.Show();
             e.Get(this);
         }
         if (tank2.Died == true)
         {
             networker.Send("gameover;lose");
             e2.Show();
             e2.Get(this);
         }
     }
 }
Example #2
0
        private void Buy_Click(object sender, EventArgs e)
        {
            EndingForm2 end = new EndingForm2();

            end.Get(this);
            end.Buy_Show();
            end.Show();
        }