private void Start() { GameStateService gameStateService = Get <GameStateService>(); gameStateService.CurrentLevelData = startLevel; gameStateService.TriggerSceneTransition(startBuildScene); }
public void PostInitialize() { _songService = ServiceLocator.Get <SongService>(); _gameStateService = ServiceLocator.Get <GameStateService>(); _currentBeatStartTimeAbs = (float)AudioSettings.dspTime; _currentBeatRunTime = 0; _gameStateService.GameFinishing += Cleanup; _gameStateService.GameStarted += OnGameStarted; }