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(); }
private void TryToShowBuyArtistTutorial() { if (DynamicParametersManager.Instance.Get(DynamicParameterType.ArtistsCount).Level > 1) { return; } TutorialPopup tutorialPopup = PopupManager.Instance.GetPopup <TutorialPopup>(); tutorialPopup.InitializeTutorial(TutorialType.BuyArtists); tutorialPopup.Show(); }
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(); }
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; }