private void Start()
    {
        preQselected          = PlayerPrefs.GetString("PreQ5Ans");
        detectedCountryName   = ChangeSceneOnCountryTouchContr.catchClickedCountry();
        PassportPowerDataList = LoadPassportDataContr.sendPassportPowerList();
        PassportRankDataList  = LoadPassportDataContr.sendPassportRankList();
        setCountryIdentifier();
        setScanCountryIdent();

        mobilityDigitText.text = PassportPowerDataList[scanCountryIdent].ToString();
        rankDigitText.text     = "#" + PassportRankDataList[scanCountryIdent].ToString();
    }
Пример #2
0
    void Update()
    {
        detectedCountryName   = ChangeSceneOnCountryTouchContr.catchClickedCountry();
        PassportPowerDataList = LoadPassportDataContr.sendPassportPowerList();
        PassportRankDataList  = LoadPassportDataContr.sendPassportRankList();
        setCountryIdentifier();

        int IsTracked = PlayerPrefs.GetInt("IsTracked");

        receivedNat = PlayerPrefs.GetString("savedNationality");
        setScanCountryIdent();

        if (detectedCountryName == "EMPTY" || detectedCountryName == "EARTH_MESH" || detectedCountryName == "EARTH_MESH_map")
        {
            mobilityDigitText.text = PassportPowerDataList[scanCountryIdent].ToString();
            rankDigitText.text     = "#" + PassportRankDataList[scanCountryIdent].ToString();
        }
        else
        {
            mobilityDigitText.text = PassportPowerDataList[countryIdentifier].ToString();
            rankDigitText.text     = "#" + PassportRankDataList[countryIdentifier].ToString();
        }
    }