コード例 #1
0
 //private
 public void BulletsTimerOnElapsed(object sender, ElapsedEventArgs elapsedEventArgs)
 {
     BulletsCollisionHandler(_tank.Bullets, out _enemyTank.Bullets, _map, false);
     BulletAndTankColisionHandler(_tank.Bullets, true, _map);
     _bullet.BulletsMove(_tank.Bullets, _map);
     BulletsCollisionHandler(_enemyTank.Bullets, out _tank.Bullets, _map, true);
     BulletAndTankColisionHandler(_enemyTank.Bullets, false, _map);
     _bullet.BulletsMove(_enemyTank.Bullets, _map);
     _bulletsTimer.Enabled = !GameOver;
 }