示例#1
0
 private void buttonPressed(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.P)
     {
         startSound.Stop();
         DisplayGameStartScreen();
         gameRunning = true;
     }
     else
     {
         manager.handlebuttonPressed(e.KeyCode);
     }
 }