Пример #1
0
        /*******************************************************************/
        public void StartNewGame()
        {
            UpdateApplication();
            UpdateView();

            void UpdateApplication()
            {
                dataPersistence.RemoveProgress();
                dataPersistence.LoadProgress();
            }

            void UpdateView() => panelPresenter.ChooseCampaignPanel();
        }
        /*******************************************************************/
        public void Init()
        {
            UpdateApplication();
            UpdateView();

            void UpdateApplication() => dataMapperService.LoadProgress();

            void UpdateView()
            {
                buttonsPresenter.AutoActivateVisibilitySwitch();
                if (applicationValues.ContinueGame)
                {
                    startGame.ContinueGame();
                }
                else
                {
                    panelPresenter.ChooseHomePanel();
                }
            }
        }
 private void DebugInitialization()
 {
     dataPersistence.LoadInfoCards();
     imagesCard.Build();
     dataPersistence.LoadProgress();
 }