private void Awake() { int levelIndex = SceneManager.GetActiveScene().buildIndex; LevelRoad = _levelSettings.LevelList[levelIndex].Road; LevelRoadInterval = _levelSettings.RoadSpawnInterval(LevelRoad); LevelBoundary = _levelSettings.LevelBoundary(LevelRoad); _targetScore = _levelSettings.LevelList[levelIndex].TargetScore; }