[SerializeField] private Object[] _nextScenes;
private void OnOutOfProjectile()
{
PlayerPrefs.SetInt(ScorePref, _scoreView.Score);
int rand = Random.Range(0, _nextScenes.Length);
SceneManager.LoadScene(_nextScenes[rand].name);
}
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
[SerializeField] private string[] _nextScenes;
SceneManager.LoadScene(_nextScenes[rand]);