Esempio n. 1
0
 private void m_keys_KeyEvent(System.Windows.Forms.KeyEventArgs e, bool bDown)
 {
     if (!bDown)
     {
         return;
     }
     if (this.m_keys.GetActionForKey(e.KeyCode) == "up")             //action
     {
         //shoot!
         if (this.m_shot == null || this.m_shot.Disposing)
         {
             this.m_shot      = new PlayerShot(this.Loc);
             this.m_shot.LocZ = this.LocZ;
         }
     }
 }
Esempio n. 2
0
 private void m_keys_KeyEvent(System.Windows.Forms.KeyEventArgs e, bool bDown)
 {
     if (!bDown)
         return;
     if (this.m_keys.GetActionForKey(e.KeyCode) == "up") //action
     {
         //shoot!
         if (this.m_shot == null || this.m_shot.Disposing)
         {
             this.m_shot = new PlayerShot(this.Loc);
             this.m_shot.LocZ = this.LocZ;
         }
     }
 }