private void EnsureProfile() { if (DayNightProfile == null) { DayNightProfile = Resources.Load <WeatherMakerDayNightCycleProfileScript>("WeatherMakerDayNightCycleProfile_Default"); } if (Application.isPlaying) { DayNightProfile = ScriptableObject.Instantiate(DayNightProfile); } }