private void FixedUpdate() { if (_currentCooldown > 0 || _bullets.Count == 0) { return; } BulletType bulletType = _bullets[_bullets.Count - 1]; _bullets.RemoveAt(_bullets.Count - 1); GameObject bulletPrefab = bulletType == BulletType.RealBullet ? _realBulletPrefab : _fakeBulletPrefab; _shootingController.ShootInDirection(bulletPrefab, _speed, Vector2.down); _currentCooldown = _cooldown; }