Example #1
0
        // -------------------------------------------

        /*
         * PlayInVRPressed
         */
        private void EnableBackgroundVR()
        {
            SoundsController.Instance.PlaySingleSound(SoundsConfiguration.SOUND_SELECTION_FX);
            MultiplayerConfiguration.SaveEnableBackground(true);

            MenuScreenController.Instance.LoadGameScene(this);
        }
Example #2
0
        // -------------------------------------------

        /*
         * Constructor
         */
        public override void Initialize(params object[] _list)
        {
            base.Initialize(_list);

            m_root      = this.gameObject;
            m_container = m_root.transform.Find("Content");

#if !ALTERNATIVE_TITLE
            m_container.Find("Title").GetComponent <Text>().text = LanguageController.Instance.GetText("message.game.title");
#else
            m_container.Find("Title").GetComponent <Text>().text = LanguageController.Instance.GetText("message.game.mobile.title");
#endif

            GameObject playWithARCore = m_container.Find("Button_WithARCore").gameObject;
            playWithARCore.transform.Find("Text").GetComponent <Text>().text = LanguageController.Instance.GetText("screen.play.with.arcore");
            playWithARCore.GetComponent <Button>().onClick.AddListener(PlayWithARCore);

            GameObject playWithoutARCore = m_container.Find("Button_WithoutARCore").gameObject;
            playWithoutARCore.transform.Find("Text").GetComponent <Text>().text = LanguageController.Instance.GetText("screen.play.without.arcore");
            playWithoutARCore.GetComponent <Button>().onClick.AddListener(PlayWithoutARCore);

            MultiplayerConfiguration.SaveEnableBackground(true);

            UIEventController.Instance.UIEvent += new UIEventHandler(OnMenuEvent);
        }