private void ChangeSunPosition()
    {
        var    angles = new Vector3();
        double alt;
        double azi;

        SunPosition.CalculateSunPosition(dateTimeNow, (double)latitude, (double)longitude, out azi, out alt);
        angles.x = (float)alt * Mathf.Rad2Deg;
        angles.y = (float)azi * Mathf.Rad2Deg;

        EnviromentSettings.SetSunAngle(angles);

        UpdateWheelAccordingToSun();
        UpdateNumericInputs();
    }
 void Awake()
 {
     enviroment = this;
 }
 public void ToggleReflections(bool reflectionsOn)
 {
     realtimeReflectionProbe.SetActive(reflectionsOn);
     EnviromentSettings.SetReflections(reflectionsOn);
 }
 // Token: 0x060018A9 RID: 6313 RVA: 0x00010812 File Offset: 0x0000EA12
 public void SetEnviroment(EnviromentSettings settings, Bounds bounds)
 {
     this._currentEnviroment = settings;
     this._currentEnviroment.EnviromentBounds = new Bounds(bounds.center, bounds.size);
     this._isOnLatter = (this._currentEnviroment.Type == EnviromentSettings.TYPE.LATTER);
 }