private void TryShoot() { if (lastShotTime + shootCoolDown < Time.time) { lastShotTime = Time.time; BossBullet bullet = Instantiate(prefabBossBullet, bulletSpawnPoint.transform.position, bulletSpawnPoint.transform.rotation, null); bullet.Fire(shotdamage, shotSpeed); } }