Exemplo n.º 1
0
        private void Start()
        {
            GameStateService gameStateService = Get <GameStateService>();

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