コード例 #1
0
ファイル: ControlArtistPopup.cs プロジェクト: xeesar/IdleGame
        private void TryToShowWatchGraffitiTutorial()
        {
            if (ServiceLocator.Instance.Get <IUserProfileModel>().TutorialStage > (int)TutorialType.WatchGraffiti)
            {
                return;
            }

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

            tutorialPopup.InitializeTutorial(TutorialType.WatchGraffiti);
            tutorialPopup.Show();
        }
コード例 #2
0
ファイル: ControlArtistPopup.cs プロジェクト: xeesar/IdleGame
        private void TryToShowAddArtistTutorial()
        {
            if (m_targetBuilding.ArtistsCount > 0)
            {
                TryToShowWatchGraffitiTutorial();
                return;
            }

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

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

            m_slider.onValueChanged.AddListener(OnTutorialValueChanged);
        }
コード例 #3
0
ファイル: ControlArtistPopup.cs プロジェクト: xeesar/IdleGame
        protected override void OnClaimButtonClick()
        {
            IUserProfileModel userProfileModel = ServiceLocator.Instance.Get <IUserProfileModel>();

            if (userProfileModel.TutorialStage == (int)TutorialType.AddArtist)
            {
                return;
            }

            userProfileModel.OpenedBuildingArtists = m_targetBuilding.ArtistsCount;

            if (userProfileModel.TutorialStage == (int)TutorialType.WatchGraffiti)
            {
                userProfileModel.TutorialStage += 1;
                TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>();
                tutorialPopup.Hide();
            }

            base.OnClaimButtonClick();
        }