Example #1
0
        protected override void Start()
        {
            base.Start();

            GlobalUI.ShowPauseMenu(false);
            GlobalUI.ShowBackButton(true);
        }
Example #2
0
        protected override void Start()
        {
            base.Start();
            GlobalUI.ShowPauseMenu(false);

            // We force subtitles on when we enter this scene to show the player that they can read
            if (!AppManager.I.AppSettings.KeeperSubtitlesEnabled)
            {
                AppManager.I.AppSettingsManager.ToggleKeeperSubtitles();
            }

            m_CameraEndPosition   = Camera.main.transform.position;
            m_CameraStartPosition = m_CameraEndPosition + cameraOffset;
            autoMoveObjects       = environment.GetComponentsInChildren <AutoMove>();

            var lettersData = AppManager.I.Teacher.GetAllTestLetterDataLL();

            foreach (var l in Letters)
            {
                l.Init(lettersData.GetRandom());
                l.State = LLAnimationStates.LL_dancing;
            }

            Antura.State = AnturaAnimationStates.dancing;

            text.SetSentence(Database.LocalizationDataId.End_Scene_2);
            text.Alpha = 0;
            panel.SetAlpha(0);
        }
Example #3
0
        protected override void Start()
        {
            base.Start();

            GlobalUI.ShowPauseMenu(false);
            //ShowBackButton();

            CurrentState = Idle;

            ShopActionsManager.Initialise();
            UI.Initialise();

            TutorialManager tutorialManager = gameObject.GetComponentInChildren <AnturaSpaceTutorialManager>();

            tutorialManager.HandleStart();

            if (!tutorialManager.IsRunning)
            {
                // Also play a welcome
                KeeperManager.I.PlayDialogue(new[]
                {
                    LocalizationDataId.AnturaSpace_Welcome_1,
                    LocalizationDataId.AnturaSpace_Welcome_2,
                    LocalizationDataId.AnturaSpace_Welcome_3
                }.GetRandom());
            }
        }
Example #4
0
        void Start()
        {
            GlobalUI.ShowPauseMenu(false);
            foreach (var go in HideAtStartup)
            {
                go.SetActive(false);
            }

            if (OpeningArea != BookArea.None)
            {
                BookManager.I.OpenBook(OpeningArea);
            }

            //GlobalUI.ShowBackButton(true, GoBackCustom);
            //AudioManager.I.PlayMusic(SceneMusic);
            //AudioManager.I.PlayDialogue("Book_Intro");

            //HideAllPanels();
            //if (OverridenOpeningArea != BookArea.None) {
            //    OpenArea(OverridenOpeningArea);
            //} else {
            //    OpenArea(OpeningArea);
            //}

            // Debug.Log("PREV SCENE IS RESERVED AREA: " + AppManager.I.NavigationManager.PrevSceneIsReservedArea());
        }
Example #5
0
 public void SyncPlayerState()
 {
     GlobalUI.Instance().SetDays(PlayerState.Instance().days);
     GlobalUI.Instance().SetHealth(PlayerState.Instance().health);
     GlobalUI.Instance().SetAmmo(PlayerState.Instance().ammo);
     GlobalUI.Instance().SetCoin(PlayerState.Instance().coin);
 }
        void Start()
        {
            // Setup for testing
            ConfigAI.verboseDataSelection = true;
            ConfigAI.verboseTeacher       = true;
            ConfigAI.forceJourneyIgnore   = false;

            journey_stage_in.onValueChanged.AddListener(x => { currentJourneyStage = int.Parse(x); });
            journey_learningblock_in.onValueChanged.AddListener(x => { currentJourneyLB = int.Parse(x); });
            journey_playsession_in.onValueChanged.AddListener(x => { currentJourneyPS = int.Parse(x); });

            npacks_in.onValueChanged.AddListener(x => { nPacks = int.Parse(x); });
            ncorrect_in.onValueChanged.AddListener(x => { nCorrect = int.Parse(x); });
            nwrong_in.onValueChanged.AddListener(x => { nWrong = int.Parse(x); });

            severity_in.onValueChanged.AddListener(x => { correctSeverity = (SelectionSeverity)x; });
            severitywrong_in.onValueChanged.AddListener(x => { wrongSeverity = (SelectionSeverity)x; });

            history_in.onValueChanged.AddListener(x => { correctHistory = (PackListHistory)x; });
            historywrong_in.onValueChanged.AddListener(x => { wrongHistory = (PackListHistory)x; });

            journeybase_in.onValueChanged.AddListener(x => { journeyEnabledForBase = x; });
            journeywrong_in.onValueChanged.AddListener(x => { journeyEnabledForWrong = x; });

            GlobalUI.ShowPauseMenu(false);
        }
Example #7
0
        protected override void Start()
        {
            base.Start();
            GlobalUI.ShowPauseMenu(false);

            Invoke("PlayFeedback", 0.2f);
        }
Example #8
0
        protected override void Start()
        {
            base.Start();
            GlobalUI.ShowPauseMenu(false);

            if ((AppManager.I.Player.CurrentJourneyPosition.PlaySession) < 2)
            {
                KeeperManager.I.PlayDialog(Database.LocalizationDataId.Mood_Question_2);
            }
            else
            {
                int rnd = Random.Range(1, 3);
                switch (rnd)
                {
                case 1:
                    KeeperManager.I.PlayDialog(Database.LocalizationDataId.Mood_Question_1);
                    break;

                case 3:
                    KeeperManager.I.PlayDialog(Database.LocalizationDataId.Mood_Question_3);
                    break;

                default:
                    KeeperManager.I.PlayDialog(Database.LocalizationDataId.Mood_Question_2);
                    break;
                }
            }
        }
Example #9
0
 /// <summary>
 /// Never use this directly! Use the <code>Minigames Interface</code> instead.
 /// </summary>
 public static void HideEndgameResult(bool _immediate = false)
 {
     //if (I == null) return;
     GlobalUI.ShowPauseMenu(true);
     I.BonesCounter.Hide();
     I.EndgameResultPanel.Hide(_immediate);
 }
Example #10
0
        void Start()
        {
            // Setup for testing
            Application.runInBackground        = true;
            ApplicationConfig.I.VerboseTeacher = true;
            ConfigAI.ForceJourneyIgnore        = false;

            /*
             * journey_stage_in.onValueChanged.AddListener(x => { currentJourneyStage = int.Parse(x); });
             * journey_learningblock_in.onValueChanged.AddListener(x => { currentJourneyLB = int.Parse(x); });
             * journey_playsession_in.onValueChanged.AddListener(x => { currentJourneyPS = int.Parse(x); });
             *
             * npacks_in.onValueChanged.AddListener(x => { nPacks = int.Parse(x); });
             * ncorrect_in.onValueChanged.AddListener(x => { nCorrectAnswers = int.Parse(x); });
             * nwrong_in.onValueChanged.AddListener(x => { nWrongAnswers = int.Parse(x); });
             *
             * severity_in.onValueChanged.AddListener(x => { correctSeverity = (SelectionSeverity)x; });
             * severitywrong_in.onValueChanged.AddListener(x => { wrongSeverity = (SelectionSeverity)x; });
             *
             * history_in.onValueChanged.AddListener(x => { correctHistory = (PackListHistory)x; });
             * historywrong_in.onValueChanged.AddListener(x => { wrongHistory = (PackListHistory)x; });
             *
             * journeybase_in.onValueChanged.AddListener(x => { journeyEnabledForBase = x; });
             * journeywrong_in.onValueChanged.AddListener(x => { journeyEnabledForWrong = x; });
             */

            GlobalUI.ShowPauseMenu(false);
        }
Example #11
0
        protected override void Start()
        {
            base.Start();
            GlobalUI.ShowPauseMenu(false);
            GlobalUI.ShowBackButton(true);

            DebugManager.OnSkipCurrentScene += HandleSceneSkip;
        }
Example #12
0
 public void CloseReservedAreaPanel()
 {
     AudioManager.I.PlaySound(Sfx.UIButtonClick);
     DialogReservedArea.SetActive(false);
     ProfileSelectorUI.SetActive(true);
     GlobalUI.ShowPauseMenu(true, PauseMenuType.StartScreen);
     reservedAreaIsOpen = false;
 }
Example #13
0
 public void QuitApplication()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => {
         Debug.Log("Application Quit");
         Application.Quit();
     }, () => {
     }, KeeperMode.LearningNoSubtitles);
 }
Example #14
0
        /// <summary>
        /// Start the game using the currently selected player.
        /// </summary>
        public void Play()
        {
            // Debug.Log("Play with Player: " + AppManager.I.Player);
            GlobalUI.ShowPauseMenu(true);

            AppManager.I.StartNewPlaySession();
            AppManager.I.NavigationManager.GoToNextScene();
        }
Example #15
0
 public void QuitApplication()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, () => {
         Debug.Log("Application Quit");
         Application.Quit();
     }, () => {
     });
 }
Example #16
0
 public void OpenReservedAreaPanel()
 {
     AudioManager.I.PlaySound(Sfx.UIButtonClick);
     DialogReservedArea.SetActive(true);
     ProfileSelectorUI.SetActive(false);
     GlobalUI.ShowPauseMenu(false);
     reservedAreaIsOpen = true;
 }
Example #17
0
 public void StartFight()
 {
     SwitchScenes("FightScene");
     GlobalUI.Instance().Alert("Start Fight!");
     ShowOutSideUI();
     //EnemyCount = PlayerState.Instance().days + 1;
     EnemyCount = 4;
     CreateEnemies(EnemyCount);
 }
Example #18
0
        /// <summary>
        /// Never use this directly! Use the <code>Minigames Interface</code> instead.
        /// </summary>
        public static void ShowEndgameResult(int _numStars)
        {
            Init();
            GlobalUI.ShowPauseMenu(false);

            I.BonesCounter.GetComponent <RectTransform>().anchoredPosition = I.BonesCounterEndgamePos;
            I.BonesCounter.Hide();
            I.EndgameResultPanel.Show(_numStars);
        }
Example #19
0
    void ShowSafeHouseUI()
    {
        HurtEffectUI.Instance().gameObject.SetActive(false);
        EndingUI.Instance().gameObject.SetActive(false);
        OutSideUI.Instance().gameObject.SetActive(false);

        SafeHouseUI.Instance().gameObject.SetActive(true);
        GlobalUI.Instance().gameObject.SetActive(true);
    }
Example #20
0
        protected override void Awake()
        {
            GetComponent <AppBootstrap>().InitManagers();

            base.Awake();
            DontDestroyOnLoad(this);

            GlobalUI.Init();
        }
Example #21
0
        protected override void Start()
        {
            base.Start();
            GlobalUI.ShowPauseMenu(true, PauseMenuType.StartScreen);
            KeeperManager.I.PlayDialogue(LocalizationDataId.Game_Title_2, false, true, TutorCreateProfile, KeeperMode.LearningThenNativeNoSubtitles);

            AnturaAnimController.State = AnturaAnimation;
            LLAnimController.State     = LLAnimation;
        }
Example #22
0
 /// <summary>
 /// Never use this directly! Use the <code>Minigames Interface</code> instead.
 /// </summary>
 public static void HideEndsessionResult(bool _immediate = false)
 {
     if (I == null)
     {
         return;
     }
     GlobalUI.ShowPauseMenu(true);
     //I.BonesCounter.Hide();
     I.EndsessionResultPanel.Hide(_immediate);
 }
Example #23
0
 /// <summary>
 /// Returns an array with 2 gameObjects inside which to place the rewards prefab (0 is first reward, 1 is second).
 /// <para><code>IMPORTANT:</code> do not modify the returned array, just use its data</para>
 /// </summary>
 /// <param name="_sessionData">A list of data for each minigame that was part of the session</param>
 /// <param name="_alreadyUnlockedRewards">Total rewards unlocked in previous sessions (0 to 2)</param>
 /// <param name="_immediate">If TRUE shows the screen immediately with no animations. You can ignore this</param>
 /// <returns></returns>
 public static GameObject[] ShowEndsessionResult(List <EndsessionResultData> _sessionData, int _alreadyUnlockedRewards,
                                                 bool _immediate = false)
 {
     Init();
     GlobalUI.ShowPauseMenu(false);
     //I.BonesCounter.GetComponent<RectTransform>().anchoredPosition = I.BonesCounterEndsessionPos;
     //I.BonesCounter.Hide();
     I.EndsessionResultPanel.Show(_sessionData, _alreadyUnlockedRewards, _immediate);
     return(I.EndsessionResultPanel.RewardsGos);
 }
Example #24
0
        public void OnBtnShareData()
        {
            AppManager.I.AppSettingsManager.ToggleShareAnalytics();
            AnalyticsCheckIcon.Set(AppManager.I.AppSettings.ShareAnalyticsEnabled);

            if (AppManager.I.AppSettings.ShareAnalyticsEnabled)
            {
                GlobalUI.ShowPrompt(LocalizationDataId.UI_Prompt_ShareData);
            }
        }
Example #25
0
 public void OnlineAnalyticsRequest()
 {
     GlobalUI.ShowPrompt(LocalizationDataId.UI_PromptOnlineAnalytics, () => {
         AppManager.I.AppSettingsManager.EnableShareAnalytics(true);
         Close();
     }, () => {
         AppManager.I.AppSettingsManager.EnableShareAnalytics(false);
         Close();
     });
 }
Example #26
0
        private void HandleDeleteConfirmationRequested()
        {
            showPurchasePanelAlwaysAvailableTween.PlayBackwards();

            confirmationPanelUI.SetupForDeletion();

            ShopDecorationsManager.I.ResetSlotHighlights();

            GlobalUI.ShowPrompt(LocalizationDataId.UI_AreYouSure, ShopDecorationsManager.I.ConfirmDeletion, ShopDecorationsManager.I.CancelDeletion, KeeperMode.LearningNoSubtitles);
        }
Example #27
0
 public void Prompt_Show(bool yesOnly)
 {
     if (yesOnly)
     {
         GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES"));
     }
     else
     {
         GlobalUI.ShowPrompt("لعربية", "", () => Debug.Log("YES"), () => Debug.Log("NO"));
     }
 }
Example #28
0
 void Awake()
 {
     if (reference == null)
     {
         reference = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Example #29
0
 public void SetExitButtonActivation(bool choice)
 {
     if (choice)
     {
         GlobalUI.ShowBackButton(true, HandleBackButton);
     }
     else
     {
         GlobalUI.ShowBackButton(false);
     }
 }
Example #30
0
 public void OnCreateDemoPlayer()
 {
     if (AppManager.I.PlayerProfileManager.IsDemoUserExisting())
     {
         GlobalUI.ShowPrompt(Database.LocalizationDataId.ReservedArea_DemoUserAlreadyExists);
     }
     else
     {
         GlobalUI.ShowPrompt(Database.LocalizationDataId.UI_AreYouSure, DoCreateDemoPlayer, DoNothing);
     }
 }