コード例 #1
0
    // Use this for initialization
    void Start()
    {
        ForceLandscapeLeft();

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        updateStates();


        m_LoadingText.SetActive(false);
        m_LoadingBack.SetActive(false);
        messageBox = UIUtility.Find <MessageBox>("MessageBox");


        if (messageBox == null)
        {
            Debug.Log("No message box set");
        }
        else
        {
            Debug.Log("Message set");
        }


        // createValidationsList();

        loadValidationSessions();

        m_ButtonNext.SetActive(false);
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        ForceLandscapeLeft();
        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }



        int nrquestsdone = 0;

        if (PlayerPrefs.HasKey("NrQuestsDone"))
        {
            nrquestsdone = PlayerPrefs.GetInt("NrQuestsDone");
        }
        else
        {
            nrquestsdone = 0;
        }


        nrquestsdone++;
        PlayerPrefs.SetInt("NrQuestsDone", nrquestsdone);
        PlayerPrefs.Save();



        updateStates(nrquestsdone - 1);
    }
コード例 #3
0
 public void updateStates()
 {
     m_TextTitle.GetComponentInChildren <UnityEngine.UI.Text>().text   = LocalizationSupport.GetString("ChooseValidation");
     m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("Back");    //"Back";
     m_ButtonNext.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("Next");    //"Back";
     m_LoadingText.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Loading"); //"Loading...";
 }
コード例 #4
0
    private void Awake()
    {
        //Setting whether to use system language first. If it is on, then setting current language has no effect.
        LocalizationSupport.UseSystemLanguage = UseSystemLanguage;

        /*
         * if (Language.CompareTo ("English") == 0 || Language.CompareTo ("German") == 0) {
         *
         * } else {
         *      Language = "English";
         * }*/

        LocalizationSupport.CurrentLanguage = LocalizationSupport.StringToLanguage(Language);


        string originalPath = LocalizationSupport.StringsXMLPath;

        try
        {
            LocalizationSupport.StringsXMLPath = Path.GetFileNameWithoutExtension(StringsXmlResource);
        }
        catch (Exception)
        {
            Debug.LogError("Localization Configuration: Strings XML Path string is invalid!");
        }

        if ((!LocalizationSupport.StringsLoaded) || (originalPath != StringsXmlResource))
        {
            LocalizationSupport.LoadStrings();
        }
    }
コード例 #5
0
 void updateButtonText()
 {
     if (m_CurState < 4)
     {
         if (Application.systemLanguage == SystemLanguage.German)
         {
             m_Button.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("Next");
         }
         else
         {
             m_Button.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("Next");
         }
     }
     else
     {
         if (Application.systemLanguage == SystemLanguage.German)
         {
             m_Button.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("Ok");
         }
         else
         {
             m_Button.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("Ok");
         }
     }
 }
コード例 #6
0
    // Use this for initialization
    void Start()
    {
        ForceLandscapeLeft();

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        updateStates();

        m_LoadingText.SetActive(false);
        m_LoadingBack.SetActive(false);
        messageBox = UIUtility.Find <MessageBox>("MessageBox");


        if (messageBox == null)
        {
            Debug.Log("No message box set");
        }
        else
        {
            Debug.Log("Message set");
        }

        //  loginSuccessful("laco-wiki-app:///#access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IndwWDRxblFtTzVOWG1kbExUUXd6Vk53WWlZMCIsImtpZCI6IndwWDRxblFtTzVOWG1kbExUUXd6Vk53WWlZMCJ9.eyJpc3MiOiJodHRwczovL2Rldi5sYWNvLXdpa2kubmV0L2lkZW50aXR5IiwiYXVkIjoiaHR0cHM6Ly9kZXYubGFjby13aWtpLm5ldC9pZGVudGl0eS9yZXNvdXJjZXMiLCJleHAiOjE1NjM0NDU5MzMsIm5iZiI6MTU2MzQ0MjMzMywiY2xpZW50X2lkIjoid2ViYXBpIiwic2NvcGUiOiJ3ZWJhcGkiLCJzdWIiOiIyIiwiYXV0aF90aW1lIjoxNTYzNDQyMzMzLCJpZHAiOiJHZW9XaWtpIiwibmFtZSI6IlRvYmlhcyBTdHVybiIsImVtYWlsIjoidG9iaWFzLnN0dXJuQHZvbC5hdCIsInJvbGUiOiJVc2VyIiwiYW1yIjpbImV4dGVybmFsIl19.MeiCRFLNJM70M_YI0M1TST51V3kKr8UKRBWyupdW7HVrHiXQkAE_qe_v9sBAFIbZs4aBSZDmjAYPcEMiPg97bwepFogQTioUWAjlcF2X4kvFJvkC-KZnP67HFGH0BmCfdYNaJgSeRUn0LNMI_7hz8WgcLrT4dMkVMgwVUi_iwtPG0FD2P8EnBEm_pzFXDlDOAypJ5dVKHnb3hH8HIkVqiF6HYrMmxPy2tLMcmAbuIDybPqMD4VLA5R0vPvYaWlQCpkcuMBXrH_vXFoeGk1S45yU8e7N6kQgnOomtIL66iCu9N_xIpXZmNWzz3Os3-SWZ7-keBFcxcnDTT2D3WvtooQ&token_type=Bearer&expires_in=3600&scope=webapi");
        loginSuccessful("laco-wiki-app:///#access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IndwWDRxblFtTzVOWG1kbExUUXd6Vk53WWlZMCIsImtpZCI6IndwWDRxblFtTzVOWG1kbExUUXd6Vk53WWlZMCJ9.eyJpc3MiOiJodHRwczovL2Rldi5sYWNvLXdpa2kubmV0L2lkZW50aXR5IiwiYXVkIjoiaHR0cHM6Ly9kZXYubGFjby13aWtpLm5ldC9pZGVudGl0eS9yZXNvdXJjZXMiLCJleHAiOjE1NjU3ODMwNDAsIm5iZiI6MTU2NTc3OTQ0MCwiY2xpZW50X2lkIjoid2ViYXBpIiwic2NvcGUiOiJ3ZWJhcGkiLCJzdWIiOiI2IiwiYXV0aF90aW1lIjoxNTY1Nzc5MTIzLCJpZHAiOiJHZW9XaWtpIiwibmFtZSI6IlRvYmlhcyBTdHVybiIsImVtYWlsIjoidG9iaWFzLnN0dXJuQHZvbC5hdCIsInJvbGUiOiJVc2VyIiwiYW1yIjpbImV4dGVybmFsIl19.tf7y-AyazB_NaHhYe41yxTL32XtgdZKLR77vrU4l1cJ4Tr96ESxrZqEBS98bsqnnJGQ6YyCJBr7Tn65pdrQiXuQeK0q635QIdJhm5EzbpurDBYB6hEVWt0bOlJeIFbdkl7uFvFi5hUzQZICAPdDLdJEdXvnDdGXQ_vj9Ny3M2BRyPneqQ5RoQbHl-uh3Tf88HLsiDwM2vQ632UCbMCXhe-vU_Q3MU9D1Rgm0iB7R2fH249WhuYyerAA129PUHptAv7QysLm8WhgEBgGghFmuweGfHs7GFQeicUDv5mzUJlPU-tHjz5UoDPP5oODKF4TmQPaKAwk3IPYQS88XFwwNBQ&token_type=Bearer&expires_in=3600&scope=webapi");

        ImaginationOverflow.UniversalDeepLinking.DeepLinkManager.Instance.LinkActivated += Instance_LinkActivated;
    }
コード例 #7
0
        public async Task <ActionResult> LocalizeConfig_Partial(Model model)
        {
            using (LocalizeConfigDataProvider dataProvider = new LocalizeConfigDataProvider()) {
                LocalizeConfigData origData = YetaWF.Core.Audit.Auditing.Active ? await dataProvider.GetItemAsync() : null;

                LocalizeConfigData data = await dataProvider.GetItemAsync();// get the original item

                if (!ModelState.IsValid)
                {
                    return(PartialView(model));
                }
                data = model.GetData(data); // merge new data into original
                model.SetData(data);        // and all the data back into model for final display

                LocalizationSupport locSupport = new LocalizationSupport();
                await locSupport.SetUseLocalizationResourcesAsync(model.UseLocalizationResources);

                await locSupport.SetAbortOnFailureAsync(model.AbortOnFailure);

                await dataProvider.UpdateConfigAsync(data);

                await Auditing.AddAuditAsync($"{nameof(LocalizeConfigModuleController)}.{nameof(LocalizeConfig)}", null, Guid.Empty, $"Localization",
                                             DataBefore : origData,
                                             DataAfter : data,
                                             RequiresRestart : true
                                             );
            }
            return(FormProcessed(model, this.__ResStr("okSaved", "Localization settings saved - These settings won't take effect until the site is restarted")));
        }
コード例 #8
0
    void UpdateText()
    {
        /*if (Application.systemLanguage == SystemLanguage.German ) {
         *      if (m_CurSelection == 0) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Fotos insgesamt:\nQuests insgesamt:\nOrte besucht:";
         *      } else if (m_CurSelection == 1) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Fotos diese Woche:\nQuests diese Woche:\nOrte besucht:";
         *      } else if (m_CurSelection == 2) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Fotos letzte Woche:\nQuests letzte Woche:\nOrte besucht:";
         *      }
         *
         *      m_Loading.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Wird geladen...";
         * } else {
         *      if (m_CurSelection == 0) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Total photos:\nTotal quests:\nLocations visited:";
         *      } else if (m_CurSelection == 1) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Photos this week:\nQuests this week:\nLocations visited:";
         *      } else if (m_CurSelection == 2) {
         *              m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Photos last week:\nQuests last week:\nLocations visited:";
         *      }
         *      m_Loading.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Loading...";
         * }*/

        /*m_TextInfo.GetComponentInChildren<UnityEngine.UI.Text> ().text =  LocalizationSupport.GetString("LeaderboardTotalPhotos") +
         *      "\n" + LocalizationSupport.GetString("LeaderboardTotalQuests") + "\n" +  LocalizationSupport.GetString("LeaderboardTotalLocations");
         */m_TextInfo.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("LeaderboardTotalQuests") + "\n" + LocalizationSupport.GetString("LeaderboardTotalLocations");

        m_Loading.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("Loading");
    }
コード例 #9
0
    private void Start()
    {
        StartCoroutine(changeFramerate());
        ForceLandscapeLeft();

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        HideDownloading();

        control = (OnlineMapsTileSetControl)OnlineMapsControlBase.instance;
        api     = OnlineMaps.instance;

        map = OnlineMaps.instance;

        OnlineMapsControlBase3D control2 = GetComponent <OnlineMapsControlBase3D>();

        if (control2 == null)
        {
            Debug.Log("You must use the 3D control (Texture or Tileset).");
            return;
        }

        m_ButtonReset.SetActive(false);

        //OnlineMapsControlBase.instance.allowUserControl = false;//true;//false;
        //	OnlineMaps.instance.OnChangeZoom += OnChangeZoom;
        OnlineMapsTile.OnTileDownloaded         += OnTileDownloaded;
        OnlineMaps.instance.OnStartDownloadTile += OnStartDownloadTile;

        control2.OnMapPress   += OnMapPress;
        control2.OnMapRelease += OnMapRelease;
        control2.OnMapZoom    += OnMapZoom;

        //----------------
        // Set 2d mode
        Camera c = Camera.main;

        c.orthographic = true;
        //---------------

/*		control2.setUpdateControl (true);
 *              control2.setAlwaysUpdateControl (true);
 *              control2.allowUserControl = true;
 */
        m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Back");
        m_ButtonNext.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnDownload");
        m_ExplanationText.GetComponent <UnityEngine.UI.Text>().text      = LocalizationSupport.GetString("ExplanationOfflineAccess");


        m_DownloadBtnStart.GetComponentInChildren <UnityEngine.UI.Text>().text     = LocalizationSupport.GetString("BtnDownloadNow");
        m_DownloadBtnCompleted.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Ok");
        m_ButtonNext.SetActive(false);
        //OnLocationChanged (new Vector2 (0.0f, 0.0f));

        toUserLocation();
    }
コード例 #10
0
    void startClassification()
    {
        m_ScrollView.SetActive(false);
        m_TextTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("SelectClassification");

        m_ScrollViewClassification.SetActive(true);
        createClassificationList();
    }
コード例 #11
0
    //****** Here is how you change language at runtime. ******
    //Alternatively, you can setup language settings for the whole game in editor using LocalizationSupportSetup prefab (refer to the second demo scene).
    private void UpdateLanguage()
    {
        //First set whether to overwrite any language setting with system language.
        LocalizationSupport.UseSystemLanguage = autodetectToggle.isOn;

        //Set the language you want. Has no effect if UseSystemLanguage is on.
        LocalizationSupport.CurrentLanguage = LocalizationSupport.StringToLanguage(languages[currentLanguage]);

        //Reload the level to apply changes to UI. Note LocalizationSupport.GetString(string) will work without reloading the scene.
        Application.LoadLevel(0);
    }
コード例 #12
0
    public void updateStates(int questid)
    {
        float  money    = PlayerPrefs.GetFloat("CurQuestWeight") / 100.0f;
        string strtotal = money.ToString("F2") + "€";                                                                    //4F9F56FF//20A0DABF

        m_Title.GetComponentInChildren <UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("QuestSuccessful"); // "Quest successful!";
        //	m_Text.GetComponentInChildren<UnityEngine.UI.Text> ().text = "Your support is very important to improve nature protection!\nThank you very much!";

        /*int nrquestsdone = 0;
         * if (PlayerPrefs.HasKey ("NrQuestsDone")) {
         *      nrquestsdone = PlayerPrefs.GetInt ("NrQuestsDone");
         * } else {
         *      nrquestsdone = 0;
         * }
         * if (nrquestsdone > 4) {
         *      nrquestsdone = 4;
         * }
         *
         * if (nrquestsdone < 4) {
         *      m_TextCompetition.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("QuestCompetition" + nrquestsdone);//"You have successfully completed your quest. You can upload the results of your quest now or later.";
         *      m_Button.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString ("BtnContinue");
         * } else {
         *      if (checkLoggedIn ()) {
         *              m_TextCompetition.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("QuestCompetition" + nrquestsdone);//"You have successfully completed your quest. You can upload the results of your quest now or later.";
         *              m_Button.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString ("Upload");
         *      } else {
         *              m_TextCompetition.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("QuestCompetition" + nrquestsdone + "Register");//"You have successfully completed your quest. You can upload the results of your quest now or later.";
         *              m_Button.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString ("BtnRegister");
         *      }
         * }*/

        int trainingpoint = PlayerPrefs.GetInt("Quest_" + questid + "_TrainingPoint");

        if (trainingpoint == 0)
        {
            m_TextCompetition.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("QuestCompleted");//"You have successfully completed your quest. You can upload the results of your quest now or later.";
        }
        else
        {
            m_TextCompetition.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("AddedNewPoint");//"You have successfully completed your quest. You can upload the results of your quest now or later.";
        }
        m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnContinue");
        //m_ButtonShare.GetComponentInChildren<UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnShare");

        /*
         * if(PlayerPrefs.HasKey("LastImageTaken") == false) {
         *  m_ButtonShare.SetActive(false);
         * }*/
        m_ButtonShare.SetActive(false);
        m_TextDidYouKnow.GetComponentInChildren <UnityEngine.UI.Text> ().text = "";
        //m_TextDidYouKnow.GetComponentInChildren<UnityEngine.UI.Text> ().text = LocalizationSupport.GetString("QuestDidYouKnow" + nrquestsdone);//"You have successfully completed your quest. You can upload the results of your quest now or later.";
    }
コード例 #13
0
 public void updateStates()
 {
     if (Application.systemLanguage == SystemLanguage.German)
     {
         m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text        = LocalizationSupport.GetString("BtnBack");
         m_TextCopyright.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("About");           //"FRA Quest ist ein Projekt des Internationalen Instituts für Angewandte Systemanalyse (IIASA) in Laxenburg bei Wien.\n\n©2017 IIASA.";
     }
     else
     {
         m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text        = LocalizationSupport.GetString("BtnBack");
         m_TextCopyright.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("About");           //"FRA Quest is developed by the International Institute for Applied Systems Analysis (IIASA) based in Laxenburg, Austria.\n\n©2017 IIASA.";
     }
 }
コード例 #14
0
    public void StartDownloading()
    {
        m_DownloadText.GetComponent <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Calculating");
        m_DownloadBack.SetActive(true);
        m_DownloadText.SetActive(true);
        m_DownloadBtnStart.SetActive(false);
        m_DownloadBtnBack.SetActive(true);
        m_DownloadImageBack.SetActive(true);
        m_DownloadBtnCompleted.SetActive(false);

        m_bCalculatingSize    = true;
        m_CalculatingSizeIter = 0;
    }
コード例 #15
0
 public void updateStates()
 {
     if (Application.systemLanguage == SystemLanguage.German && false)
     {
         m_ButtonLogin.GetComponentInChildren <UnityEngine.UI.Text>().text    = "LOGIN";
         m_ButtonRegister.GetComponentInChildren <UnityEngine.UI.Text>().text = "REGISTRIEREN";
         m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text     = "Zurück";
     }
     else
     {
         m_ButtonLogin.GetComponentInChildren <UnityEngine.UI.Text> ().text   = LocalizationSupport.GetString("BtnLogin");    //"LOGIN";
         m_ButtonRegister.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnRegister"); //"REGISTER";
         m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text     = LocalizationSupport.GetString("Back");        //"Back";
     }
 }
コード例 #16
0
    public void updateStates()
    {
        if (Application.systemLanguage == SystemLanguage.German)
        {
            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnBack");            //"ZURÜCK";

            m_Rank.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("LeaderboardRank");     //"Rang";
            m_LName.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LeaderboardName");     //"Name";
            m_Score.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LeaderboardNrQuests"); //"Quests gemacht";

            m_Dropdown.GetComponentInChildren <UnityEngine.UI.Text>().text = "Insgesamt";

            UnityEngine.UI.Dropdown.OptionData list  = new UnityEngine.UI.Dropdown.OptionData("Insgesamt");
            UnityEngine.UI.Dropdown.OptionData list2 = new UnityEngine.UI.Dropdown.OptionData("Diese Woche");
            UnityEngine.UI.Dropdown.OptionData list3 = new UnityEngine.UI.Dropdown.OptionData("Letzte Woche");

            UnityEngine.UI.Dropdown dropdown;
            dropdown = m_Dropdown.GetComponent <UnityEngine.UI.Dropdown>();
            dropdown.options.Clear();
            dropdown.options.Add(list);
            dropdown.options.Add(list2);
            dropdown.options.Add(list3);
        }
        else
        {
            //m_Score.GetComponentInChildren<UnityEngine.UI.Text>().text = "Quests done";

            m_Rank.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("LeaderboardRank");          //"Rang";
            m_LName.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LeaderboardName");          //"Name";
            m_Score.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LeaderboardNrQuests");      //"Quests gemacht";


            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnBack");           //"CLOSE";

            m_Dropdown.GetComponentInChildren <UnityEngine.UI.Text>().text = "Total";

            UnityEngine.UI.Dropdown.OptionData list  = new UnityEngine.UI.Dropdown.OptionData("Total");
            UnityEngine.UI.Dropdown.OptionData list2 = new UnityEngine.UI.Dropdown.OptionData("This week");
            UnityEngine.UI.Dropdown.OptionData list3 = new UnityEngine.UI.Dropdown.OptionData("Last week");

            UnityEngine.UI.Dropdown dropdown;
            dropdown = m_Dropdown.GetComponent <UnityEngine.UI.Dropdown>();
            dropdown.options.Clear();
            dropdown.options.Add(list);
            dropdown.options.Add(list2);
            dropdown.options.Add(list3);
        }
    }
コード例 #17
0
    // Use this for initialization
    void Start()
    {
        StartCoroutine(changeFramerate());
        ForceAndFixLandscape();

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        //Screen.fullScreen = false;

        /*Screen.orientation = ScreenOrientation.Portrait;
         *
         * Screen.autorotateToPortrait = true;
         * Screen.autorotateToPortraitUpsideDown = false;
         * Screen.autorotateToLandscapeRight = false;
         * Screen.autorotateToLandscapeLeft = false;*/

        m_bShown = false;
        m_Show   = 0;

        if (PlayerPrefs.HasKey("RegisterMsgShown"))
        {
            int hasshown = PlayerPrefs.GetInt("RegisterMsgShown");
            Debug.Log("RegisterMsgShown: " + hasshown);
            if (hasshown == 1)
            {
                m_bShown = true;
            }
            else
            {
                PlayerPrefs.SetInt("RegisterMsgShown", 1);
                PlayerPrefs.Save();
            }
        }
        else
        {
            Debug.Log("RegisterMsgShown not set");
            PlayerPrefs.SetInt("RegisterMsgShown", 1);
            PlayerPrefs.Save();
        }
        m_bShown = false;         // Comment this out again

        messageBox = UIUtility.Find <MessageBox> ("MessageBox");

        updateStates();
    }
コード例 #18
0
    // Use this for initialization
    void Start()
    {
        ForceLandscapeLeft();/*
                              * Screen.orientation = ScreenOrientation.Portrait;
                              *
                              * Screen.autorotateToPortrait = true;
                              * Screen.autorotateToPortraitUpsideDown = false;
                              * Screen.autorotateToLandscapeRight = false;
                              * Screen.autorotateToLandscapeLeft = false;
                              *
                              *
                              * Screen.orientation = ScreenOrientation.Portrait;
                              * Screen.autorotateToPortrait = true;
                              * Screen.autorotateToPortraitUpsideDown = false;
                              * Screen.autorotateToLandscapeRight = false;
                              * Screen.autorotateToLandscapeLeft = false;*/


        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        updateStates();


        m_LoadingText.SetActive(false);
        m_LoadingBack.SetActive(false);
        messageBox = UIUtility.Find <MessageBox> ("MessageBox");
        //	verticalMessageBox = UIUtility.Find<MessageBox> ("VerticalMessageBox");

        /*
         *      messageBox.Show(title,message,icon,null,options);
         */


        if (messageBox == null)
        {
            Debug.Log("No message box set");
        }
        else
        {
            Debug.Log("Message set");
        }

        hideTerms();
    }
コード例 #19
0
    public void updateStates()
    {
        if (Application.systemLanguage == SystemLanguage.German && false)
        {
            m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text = "Schließen";

            m_TermsTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = "Teilnahmebedingungen";
        }
        else
        {
            m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Close");           //"Close";

            m_TermsTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("MenuTerms");       //"Terms and Conditions";
        }

        showTerms();
    }
コード例 #20
0
        void Start()
        {
            {
                var file = Resources.Load("CodexBuildings") as TextAsset;
                Global.inst.textAgent.Register("BuildingCodex", LocalizationSupport.GetLocalizedString(file.text));
            }

            {
                var file = Resources.Load("CodexUnits") as TextAsset;
                Global.inst.textAgent.Register("UnitCodex", LocalizationSupport.GetLocalizedString(file.text));
            }

            {
                var file = Resources.Load("CodexShortcut") as TextAsset;
                Global.inst.textAgent.Register("ShortcutCodex", LocalizationSupport.GetLocalizedString(file.text));
            }
        }
コード例 #21
0
        protected override void SignalBypass()
        {
            base.SignalBypass();

            if (recentFilePath == null || recentFilePath != text.text)
            {
                if (LoadNewFile(text.text))
                {
                    recentFilePath = text.text;
                    SignalManager.EmitSignal(new Signal(emitFileLoad));
                }
                else
                {
                    Global.inst.textAgent.Update(textRequest, LocalizationSupport.GetLocalizedString(notFound));
                }
            }
        }
コード例 #22
0
    // Use this for initialization
    void Start()
    {
        StartCoroutine(changeFramerate());


        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }


        m_CurSelection = 0;
        m_AddedTexts   = new ArrayList();
        UpdateText();
        updateStates();

        loadLeaderboard();
    }
コード例 #23
0
    // Use this for initialization
    void Start()
    {
        //Screen.sleepTimeout = SleepTimeout.NeverSleep ;
        DeviceInput.Init();

        // setup smoothing class
        Smoothed.SetSmoothingStrength(Smooth);

        // sensor fusion needs gyroscope
        m_UseSensorFusion = DeviceInput.HasGyro;

        m_ToggleFlash.isOn        = m_FlashingFocus;
        m_ToggleSnap.isOn         = m_SnapIfAccurate;
        m_ToggleSensorFusion.isOn = m_UseSensorFusion;
        if (!DeviceInput.HasGyro)
        {
            m_ToggleSensorFusion.interactable = false;
        }

        // find parent
        m_PhotoTask = transform.parent.gameObject.GetComponent <PhotoTask> ();
        // setup label objects
        for (int i = 0; i < 4; i++)
        {
            // TaskPanel
            Panels[i]         = transform.Find(PanelTitles[i]).gameObject.GetComponent <TaskPanel> ();
            Panels[i].Heading = 90.0f * i;
            Panels[i].Pitch   = TaskPitch;
            Panels[i].Name    = PanelNames [i];
        }
        // setup frame
        // Panel_Frame
        Transform TrFrame = transform.Find("Panel_Frame");

        KompassFrame = TrFrame.gameObject;

        TrFrame.SetParent(transform.parent, false);

        m_StringTakePhoto = LocalizationSupport.GetString("TakePhotoPoint");
        m_StringHoldStill = LocalizationSupport.GetString("TakePhotoHoldStill");
        m_StringLandscape = LocalizationSupport.GetString("TakePhotoLandscape");
        m_StringFocus     = LocalizationSupport.GetString("TakePhotoFocus");
    }
コード例 #24
0
    public void updateStates()
    {
        if (Application.systemLanguage == SystemLanguage.German)
        {
            m_TextTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = "Login";

            m_ButtonLogin.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LoginLogin");          //"EINLOGGEN";
            m_TextForgot.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("LoginForgotPassword"); //"Passwort vergessen?";
            m_TextEMail.GetComponent <UnityEngine.UI.Text> ().text            = LocalizationSupport.GetString("LoginMail");           //"E-Mail:";
            m_TextPassword.GetComponent <UnityEngine.UI.Text> ().text         = LocalizationSupport.GetString("LoginPassword");       //"Passwort:";

            m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Back");                 //"Zurück";

            m_LoadingText.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Loading");             //"Laden...";
        }
        else
        {
            m_TextTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = "Login";

            m_ButtonLogin.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("LoginLogin");          //"LOGIN";
            m_TextForgot.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("LoginForgotPassword"); //"Forgot password?";
            m_TextEMail.GetComponent <UnityEngine.UI.Text> ().text            = LocalizationSupport.GetString("LoginMail");           //"E-Mail:";
            m_TextPassword.GetComponent <UnityEngine.UI.Text> ().text         = LocalizationSupport.GetString("LoginPassword");       //"Password:"******"Back");                //"Back";
            m_LoadingText.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Loading");             //"Loading...";
        }

        if (Application.systemLanguage == SystemLanguage.German)
        {
            m_TermsTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("MenuTerms");           //"Teilnahmebedingungen";


            m_TermsBtnAccept.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("Accept");          //"Annehmen";
            m_TermsBtnDecline.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Decline");         //"Ablehnen";
        }
        else
        {
            m_TermsTitle.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("MenuTerms");           //"Terms and Conditions";

            m_TermsBtnAccept.GetComponentInChildren <UnityEngine.UI.Text>().text  = LocalizationSupport.GetString("Accept");         //"Accept";
            m_TermsBtnDecline.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Decline");        //"Decline";
        }
    }
コード例 #25
0
    // Use this for initialization
    void Start()
    {
        StartCoroutine(changeFramerate());

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        Screen.orientation = ScreenOrientation.Portrait;

        Screen.autorotateToPortrait           = true;
        Screen.autorotateToPortraitUpsideDown = false;
        Screen.autorotateToLandscapeRight     = false;
        Screen.autorotateToLandscapeLeft      = false;



        updateStates();
    }
コード例 #26
0
    // Use this for initialization
    void Start()
    {
        StartCoroutine(changeFramerate());
        m_DebugIter = 0;

        m_ButtonDebug.SetActive(false);
        if (PlayerPrefs.HasKey("DebugEnabled"))
        {
            if (PlayerPrefs.GetInt("DebugEnabled") == 1)
            {
                m_ButtonDebug.SetActive(true);
            }
        }

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        updateStates();
    }
コード例 #27
0
    // Use this for initialization
    void Start()
    {
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
        SetPortrait(false);
        //UseCompass ( true ) ;
        // setup ui
        //m_ButtonFinish.interactable = false;
        m_ButtonBack.interactable = true; //false;
        m_ButtonNext.interactable = true; //false;
        m_DebugView.SetActive(false);
        //  PanelManual.SetActive(false);
        //   PanelSequential.SetActive(false);
        m_PhotoTask = m_CompassStrip;

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        m_ButtonBack.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("BtnBack");
        m_ButtonNext.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Next");
    }
    // Use this for initialization
    void Start()
    {
        Debug.Log("Intro1");
        StartCoroutine(changeFramerate());
        ForceLandscapeLeft();

        /*
         * Screen.orientation = ScreenOrientation.Portrait;
         * Screen.autorotateToPortrait = true;
         * Screen.autorotateToPortraitUpsideDown = false;
         * Screen.autorotateToLandscapeRight = false;
         * Screen.autorotateToLandscapeLeft = false;*/

        Debug.Log("Intro2");

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }


        Debug.Log("Intro3");
        m_CurState = 0;
        updateStates();


        Debug.Log("Intro4");
        bool bApple = false;

        if (!bApple)
        {
            m_AppleDisclaimer.SetActive(false);
            m_ImageDisclaimer.SetActive(false);
            m_ImageNoDisclaimer.SetActive(true);
        }
        else
        {
            m_AppleDisclaimer.SetActive(true);
            m_ImageDisclaimer.SetActive(true);
            m_ImageNoDisclaimer.SetActive(false);
        }


        Debug.Log("Intro5");
        UnityEngine.UI.Text text;
        if (Application.systemLanguage == SystemLanguage.German || true)
        {
            text = m_Page1Text.GetComponent <UnityEngine.UI.Text>();
            //	text.text = "Versuche Zielpunkte zu erreichen und hilf so beim Umweltschutz in Österreich!";
            text.text = LocalizationSupport.GetString("IntroText");//"Join the green side!\nHelp #FAOUN in the monitoring process of the world’s forests.";

            text = m_Text.GetComponent <UnityEngine.UI.Text>();
            //	text.text = "Versuche Zielpunkte zu erreichen und hilf so beim Umweltschutz in Österreich!";
            text.text = LocalizationSupport.GetString("IntroText");//"Join the green side!\nHelp #FAOUN in the monitoring process of the world’s forests.";


            text      = m_PrizeText.GetComponent <UnityEngine.UI.Text>();
            text.text = "Du erhälst für jeden besuchten Punkt 1 Euro!";

            /*text = m_Page2Text.GetComponent<UnityEngine.UI.Text>();
             *          text.text = "Jeden Tag werden in Österreich 150000 m² Land in Geschäfts-, Verkehrs-, Freizeit- und Wohnflächen umgewandelt. Dabei müssen fruchtbare Böden, Artenvielfalt und natürliche CO2-Speicher Asphalt und Beton weichen. Dies führt unter anderem dazu, dass das Risiko für Überschwemmungen steigt, landwirtschaftliche Flächen unproduktiv werden, Hitzewellen in Städten steigen und zur Erderwärmung beitragen.\n\n" +
             *          "Mit deiner Hilfe kann FotoQuest Go die Folgen der Veränderung unserer Landschaft aufzeichnen und dabei helfen, Österreichs Natur für zukünftige Generationen zu erhalten.\n\n" +
             *          "Wir haben 9000 Punkte auf ganz Österreich verteilt. Schaue auf die Karte, finde einen Punkt in deiner Nähe und folge dann den Anweisungen um eine Quest durchzufüren. Dabei musst du Bilder von der Landschaft machen und ein paar kurze Fragen beantworten.";
             */
            /*RectTransform rectTransform2 = m_Page2Text.GetComponent<RectTransform> ();
             *          float scalex = rectTransform2.sizeDelta.x;
             *          float heightentry = 1000.0f;
             *          rectTransform2.sizeDelta = new Vector2 (scalex, heightentry);
             *
             *
             *          float posx = rectTransform2.position.x;
             *          float posy = rectTransform2.position.y;
             *          float posz = rectTransform2.position.z;
             *          rectTransform2.position = new Vector3 (posx, -287.0f, posz);*/


            //	text = m_Page2Title.GetComponent<UnityEngine.UI.Text>();
            //		text.text = "Warum?";

            text      = m_Page3Title.GetComponent <UnityEngine.UI.Text>();
            text.text = "Warum?";

            text = m_Page3Text.GetComponent <UnityEngine.UI.Text>();
            //text.text = "Alle gesammelten Daten werden für alle frei verfügbar sein und einen wichtigen Beitrag zum Naturschutz leisten!";
            //	text.text = "Für jeden besuchten Punkt verdienst du 1€!\n\nDas Geld wird nach dem Ende der Kampagne (28. Dezember 2017) auf dein PayPal Konto überwiesen.";
            //	text.text = "Once you complete your quest, scientists at IIASA will check the quality of your results within 24 hours. If your contribution passes the quality check you will earn 1 EUR.\n\nAt the end of the campaign (December 2017), your total earnings will be transferred to your PayPal account.";
            text.text = LocalizationSupport.GetString("IntroText2");//"FRA Quest is a crowdsourcing tool developed to gather landscape information. The app will guide you to a series of selected locations, collect cardinal pictures and get information about the land cover characteristics. The data collected will be stored in your phone and will be uploaded to a public database once you are connected again.";

            text      = m_AppleDisclaimer.GetComponent <UnityEngine.UI.Text>();
            text.text = "(Hinweis: Apple ist nicht Sponsor von FotoQuest Go)";

            text      = m_PageText3.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("IntroText3");
            text      = m_PageText4.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("IntroText4");
            text      = m_PageText5.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("IntroText5");

            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Next");//"WEITER";
        }
        else
        {
            text = m_Page1Text.GetComponent <UnityEngine.UI.Text>();
            //			text.text = "Try to reach locations to help landscape conservation in Austria!";
            text.text = LocalizationSupport.GetString("IntroText");//"Join the green side!\nHelp #FAOUN in the monitoring process of the world’s forests.";


            text = m_PrizeText.GetComponent <UnityEngine.UI.Text>();
            //text.text = "And earn for every visited location 1€!";
            text.text = "You can earn 1 EUR for each point you visit!";

            //text = m_Page2Text.GetComponent<UnityEngine.UI.Text>();
            //	text.text = "In order to track land changes and to better evaluate the effects these changes have, the scientists at IIASA would like to run a careful examination and need your help!";

            /*	text.text = "Every day around 100.000 m² land are soil sealed in Austria. In order to track these land changes and to better evaluate the effects these changes have more data is urgently needed.\n\n" +
             *      "Therefore the scientists at IIASA would like to run a careful examination and need your help to visit around 8000 points in Austria which are located on a regular 2 km grid!\n\n" +
             *      "All data collected (after having gone through an anonymization process by removing all personal information like username or e-mail) will be made completely free and thus can serve as a very valuable source for science!";
             */
            /*	text.text = "Every day around 150,000 m² of soil are being turned into roads, businesses, homes and recreational areas in Austria, which leads to soil degradation and an increasing risk of flooding, water scarcity, unproductive agricultural land and heat waves in cities, contributing to global warming.\n\n" +
             *      "With your help, FotoQuest Go can track the effect of these changes in our landscape and help to conserve Austria’s nature for future generations.\n\n" +
             *      "We have placed around 9,000 points at a range of locations across Austria. Using the map, find a point near you and then follow the instructions to complete each quest. A quest requires you to take photographs of the landscape and answer a few short questions.";
             *
             *  //, the scientists at IIASA would like to run a careful examination and need your help! In order to track land changes and to better evaluate the effects these changes have, the scientists at IIASA would like to run a careful examination and need your help!";
             *
             *
             *  text = m_Page2Title.GetComponent<UnityEngine.UI.Text>();
             *  text.text = "Why help?";
             *
             */
            text      = m_Page3Title.GetComponent <UnityEngine.UI.Text>();
            text.text = "Why help?";


            text = m_Page3Text.GetComponent <UnityEngine.UI.Text>();
            //text.text = "All data collected will be made completely free and will be very valuable to improve nature protection!";
            //text.text = "You will earn 1€ for every visited location!\n\nThe money will be transferred to your PayPal account after the campaign has finished (December 2017) and has successfully gone through a quality control.\n\nAny attempt to cheat or hack will result in a ban and no money will be transferred.";
            //text.text = "You will earn 1€ for every visited location!\n\nThe money will be transferred to your PayPal account after the campaign has finished (December 2017).";
            //text.text = "Once you complete your quest, scientists at IIASA will check the quality of your results within 24 hours. If your contribution passes the quality check, the point you visited will be removed from the map, and you will earn 1 EUR. At the end of the campaign (December 2017), your total earnings will be transferred to your PayPal account. PLEASE MAKE SURE TO PROVIDE THE CORRECT PAYPAL ADDRESS.";
            //text.text = "Once you complete your quest, scientists at IIASA will check the quality of your results within 24 hours. If your contribution passes the quality check you will earn 1 EUR.\n\nAt the end of the campaign (December 2017), your total earnings will be transferred to your PayPal account.";
            text.text = LocalizationSupport.GetString("IntroText2"); //"FRA Quest is a crowdsourcing tool developed to gather landscape information. The app will guide you to a series of selected locations, collect cardinal pictures and get information about the land cover characteristics. The data collected will be stored in your phone and will be uploaded to a public database once you are connected again.";
                                                                     //

            //Any attempt to cheat or hack will result in a ban and no money will be transferred.

            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Next");//"NEXT";
        }

        Debug.Log("Intro6");
コード例 #29
0
    // Use this for initialization
    void Start()
    {
        StartCoroutine(changeFramerate());

        if ((!LocalizationSupport.StringsLoaded))
        {
            LocalizationSupport.LoadStrings();
        }

        Screen.orientation                    = ScreenOrientation.Portrait;
        Screen.autorotateToPortrait           = true;
        Screen.autorotateToPortraitUpsideDown = false;
        Screen.autorotateToLandscapeRight     = false;
        Screen.autorotateToLandscapeLeft      = false;


        m_CurState = 0;
        updateStates();

        UnityEngine.UI.Text text;
        if (Application.systemLanguage == SystemLanguage.German)
        {
            text      = m_Page1Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions1");

            text      = m_Page2Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions2");

            text      = m_Page3Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions3");

            text      = m_Page4Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions4");

            text      = m_Page5Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions5");



            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Next");
        }
        else
        {
            text      = m_Page1Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions1");

            text      = m_Page2Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions2");

            text      = m_Page3Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions3");

            text      = m_Page4Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions4");

            text      = m_Page5Text.GetComponent <UnityEngine.UI.Text>();
            text.text = LocalizationSupport.GetString("Instructions5");


            m_Button.GetComponentInChildren <UnityEngine.UI.Text>().text = LocalizationSupport.GetString("Next");
        }

        //PlayerPrefs.SetInt ("InstructionShown", 1);
        //PlayerPrefs.Save ();

#if UNITY_ANDROID
#if ASDFASDFASDF
        NativeEssentials.Instance.Initialize();
        PermissionsHelper.StatusResponse sr;
        PermissionsHelper.StatusResponse sr2;
        PermissionsHelper.StatusResponse sr3;        // = PermissionsHelper.StatusResponse.;//NativeEssentials.Instance.GetAndroidPermissionStatus(PermissionsHelper.Permissions.CAMERA);
        sr  = NativeEssentials.Instance.GetAndroidPermissionStatus(PermissionsHelper.Permissions.ACCESS_FINE_LOCATION);
        sr2 = NativeEssentials.Instance.GetAndroidPermissionStatus(PermissionsHelper.Permissions.ACCESS_COARSE_LOCATION);
        sr3 = NativeEssentials.Instance.GetAndroidPermissionStatus(PermissionsHelper.Permissions.CAMERA);
        if (sr == PermissionsHelper.StatusResponse.PERMISSION_RESPONSE_GRANTED && sr2 == PermissionsHelper.StatusResponse.PERMISSION_RESPONSE_GRANTED)
        {
        }
        else
        {
            if (sr == PermissionsHelper.StatusResponse.PERMISSION_RESPONSE_GRANTED && sr2 == PermissionsHelper.StatusResponse.PERMISSION_RESPONSE_GRANTED)
            {
            }
            else
            {
                NativeEssentials.Instance.RequestAndroidPermissions(new string[] { PermissionsHelper.Permissions.ACCESS_FINE_LOCATION, PermissionsHelper.Permissions.ACCESS_COARSE_LOCATION, PermissionsHelper.Permissions.CAMERA });
            }
        }
#endif
#endif
    }
コード例 #30
0
 protected override void Start()
 {
     base.Start();
     Global.inst.textAgent.Register(textRequest);
     Global.inst.textAgent.Update(textRequest, LocalizationSupport.GetLocalizedString(readHint));
 }