public ServicesController(PopupsSet popupsSet, PowerUpSet powerUpSet, AudioMixer audioMixer) { gameOverService = new GameOverService(); popupsService = new PopupsService(popupsSet); scenesService = new ScenesService(); pauseService = new PauseService(); audioService = new AudioService(audioMixer); powerUpService = new PowerUpService(powerUpSet); }
private void StartGameScene() { Selected.TEST = new Model.Test() { miniGames = new MiniGameContent[1] { content } }; ScenesService.LoadScene(Scenes.Scene_5_Test); }
public ServicesController() { AuthorizationService = new AuthorizationService(); DatabaseService = new DatabaseService(); UserService = new UserService(); ScenesService = new ScenesService(); ContentService = new ContentService(); TimeService = new TimeService(); ShareService = new ShareService(); }
private void StartTest() { SetUpTest(); if (Selected.TEST.miniGames.Length < 1) { return; } ScenesService.LoadScene(Scenes.Scene_5_Test); }
public override void Execute() { var sceneName = ChangeLevelInfo.CallerScene; if (!ScenesService.IsAdded(sceneName)) { Debug.LogWarningFormat(@"""{0}"" scene is already unloaded", sceneName); return; } Retain(); var operation = ScenesService.UnloadAsync(sceneName); operation.OnComplete(Callback); }
public override void Execute() { var sceneName = ChangeLevelInfo.TargetScene; if (ScenesService.IsAdded(sceneName)) { Debug.LogWarningFormat(@"""{0}"" scene is already loaded", sceneName); return; } Retain(); var operation = ScenesService.LoadAsync(sceneName); ChangeLevelInfo.Operation = operation; LoadingSignal.Dispatch(ChangeLevelInfo); operation.OnComplete(Callback); }
private void GoBackToMenu() { ScenesService.LoadScene(Scenes.Scene_2_UserMenu); }
public void Callback() { Debug.Log("Released"); ScenesService.SetActiveScene(ChangeLevelInfo.TargetScene); Release(); }
private void MoveToGameMenu() { ScenesService.LoadScene(Scenes.Scene_4_MiniGames); }
private void Login() { ScenesService.LoadScene(Scenes.Scene_2_UserMenu); }
private void BackToUserMenu() { ScenesService.LoadScene(Scenes.Scene_1_MainMenu); }
private void ReturnGamesMenu() { ScenesService.LoadScene(Scenes.Scene_4_MiniGames); }
private void GoToPlanMaker() { ScenesService.LoadScene(Scenes.Scene_3_Plan); }
private void GotToMiniGames() { ScenesService.LoadScene(Scenes.Scene_4_MiniGames); }
private void GoToArchive() { ScenesService.LoadScene(Scenes.Scene_6_Archive); }