void Update() { timer += Time.deltaTime; if (timer > birdLaunchInterval) { SetLaunchInterval(); timer = 0.0f; spawner.SpawnBird(); } }