private void ShootBullet() { if (Time.time >= nextShoot) { nextShoot = Time.time + delay; Bullet bullet = pooling.Get(); bullet.transform.position = spawnBullet.position; bullet.transform.rotation = spawnBullet.rotation; SoundManager.instance.PlayOneShot(clipShoot); } }