private void Awake()
    {
        if (PlayerPrefs.HasKey(InternalDataController.GPSRefreshFreqSetting))
        {
            enabled = (InternalDataController.loadValue(InternalDataController.developmentSetting) == "True") ? true : false;
        }

        FPSTimer = 1f;
    }
Exemple #2
0
    private void Awake()
    {
        Instance          = this;
        userWorldLocation = new Vector3(float.MinValue, float.MinValue, float.MinValue);
        rsc = gameObject.AddComponent(typeof(GoogleAltitudeController)) as GoogleAltitudeController;

        if (PlayerPrefs.HasKey(InternalDataController.GPSRefreshFreqSetting))
        {
            refreshInterval = float.Parse(InternalDataController.loadValue(InternalDataController.GPSRefreshFreqSetting));
        }
    }
Exemple #3
0
    private void loadSettings()
    {
        debugToggle.isOn = UpdateGpsText.enabled = (InternalDataController.loadValue(InternalDataController.developmentSetting) == "True") ? true : false;

        GPSRefreshFreq.text  = InternalDataController.loadValue(InternalDataController.GPSRefreshFreqSetting);
        MapsRefreshFreq.text = InternalDataController.loadValue(InternalDataController.mapsRefreshFreqSetting);
        mapsZoomSlider.value = float.Parse(InternalDataController.loadValue(InternalDataController.mapsZoomLevelSetting));

        GPSController.Instance.refreshInterval        = float.Parse(GPSRefreshFreq.text);
        GoogleMapsController.Instance.refreshInterval = int.Parse(MapsRefreshFreq.text);
        GoogleMapsController.Instance.zoom            = (int)mapsZoomSlider.value;
    }
Exemple #4
0
    void Awake()
    {
        Instance = this;

        if (PlayerPrefs.HasKey(InternalDataController.mapsRefreshFreqSetting))
        {
            refreshInterval = float.Parse(InternalDataController.loadValue(InternalDataController.mapsRefreshFreqSetting));
        }

        if (PlayerPrefs.HasKey(InternalDataController.mapsZoomLevelSetting))
        {
            zoom = int.Parse(InternalDataController.loadValue(InternalDataController.mapsZoomLevelSetting));
        }
    }