private static void OnInGameMenuLoaded(IInGameMenuView inGameMenuView)
 {
     inGameMenuView.OnBackToMenuRequested += () =>
     {
         BackToMainMenuFromInGameMenu();
     };
 }
 private static void OnInGameMenuLoaded(IInGameMenuView inGameMenuView)
 {
     inGameMenuView.OnBackToMenuRequested += () =>
     {
         /*
          * SceneManager.UnloadSceneAsync(ScenesConfig.FirstGameLevel);
          * SceneManager.UnloadSceneAsync(ScenesConfig.InGameMenu);
          * OpenMainMenu();*/
     };
 }
Beispiel #3
0
        public InGameMenuPresenter(
            IInGameMenuView view,
            IApplicationController controller,
            IGameManager gameManager,
            IApplicationService applicationService)
        {
            this.view               = view;
            this.controller         = controller;
            this.gameManager        = gameManager;
            this.applicationService = applicationService;

            this.view.Exit         += View_Exit;
            this.view.ExitToMenu   += View_ExitToMenu;
            this.view.StartNewGame += View_StartNewGame;
            this.view.ContinueGame += View_ContinueGame;
        }