Example #1
0
        public static void GX_SetMoon_TotalSolarEclipse()
        {
            SetLocation(43.8231f, -111.7924f, false);
            WeatherMakerDayNightCycleManagerScript script = SetDateTime(2017, 8, 21, 10, 13, 0, false);

            SerializationHelper.SetDirty(script);
        }
Example #2
0
        public static void GX_SetMoon_New()
        {
            SetLocation(40.2338f, -111.6585f, false);
            WeatherMakerDayNightCycleManagerScript d = SetDateTime(2009, 3, 26, 23, 57, 1, false);

            SerializationHelper.SetDirty(d);
        }
Example #3
0
        internal override void Initialize()
        {
#if WEATHER_MAKER_PRESENT
            WeatherMakerScript component = GameObject.FindObjectOfType <WeatherMakerScript>();
            if (component == null)
            {
                Debug.LogError("You don't have a WeatherMakerScript in your scene. Please see the Weather Maker Day Night Cycle plugin README for instructions.");
                return;
            }
            else
            {
                weatherMakerScript = component.gameObject;
            }

            WeatherMakerDayNightCycleManagerScript dayNightScript = FindObjectOfType <WeatherMakerDayNightCycleManagerScript>();
            if (dayNightScript == null)
            {
                Debug.LogError("Cannot find an object with the `WeatherMakerDayNightCycle` attached.");
            }
            else
            {
                dayNight = dayNightScript.gameObject;
            }

            WeatherMakerDayNightCycleManagerScript.Instance.DayNightProfile = weatherMakerProfile;
#endif
            base.Initialize();
        }
Example #4
0
 void Start()
 {
     _dayNightCycle       = GameObject.FindObjectOfType <WeatherMakerDayNightCycleManagerScript>();
     _dayNightCycle.Speed = SunsetSpeed;
 }