Beispiel #1
0
        private void TryToShowBuyTutorial(ProductionBuilding productionBuilding)
        {
            if (ServiceLocator.Instance.Get <IUserProfileModel>().CurrentCityProgress.UnlockedBuildings > 0)
            {
                return;
            }

            TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>();

            tutorialPopup.InitializeTutorial(TutorialType.BuyHouse);
            tutorialPopup.Show();
        }
Beispiel #2
0
        private void TryToShowBuyArtistTutorial()
        {
            if (DynamicParametersManager.Instance.Get(DynamicParameterType.ArtistsCount).Level > 1)
            {
                return;
            }

            TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>();

            tutorialPopup.InitializeTutorial(TutorialType.BuyArtists);
            tutorialPopup.Show();
        }
Beispiel #3
0
        public void TryToShowBackButtonTutorial()
        {
            IUserProfileModel userProfileModel = ServiceLocator.Instance.Get <IUserProfileModel>();

            if (userProfileModel.CurrentCityProgress.UnlockedBuildings > 1 || userProfileModel.TutorialStage != (int)TutorialType.ReturnToCity)
            {
                return;
            }

            TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>();

            tutorialPopup.InitializeTutorial(TutorialType.ReturnToCity);
            tutorialPopup.Show();
        }
Beispiel #4
0
        private void TryToShowSpeedUpTutorial()
        {
            IUserProfileModel userProfileModel = ServiceLocator.Instance.Get <IUserProfileModel>();

            if (userProfileModel.CurrentCityProgress.UnlockedBuildings > 1 || userProfileModel.TutorialStage > (int)TutorialType.SpeedUpArtists)
            {
                TryToShowBuyArtistTutorial();
                return;
            }

            TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>();

            tutorialPopup.InitializeTutorial(TutorialType.SpeedUpArtists);
            tutorialPopup.Show();

            ServiceLocator.Instance.Get <InputService>().eventOnPointerDown += OnTutorialPointerDown;
        }