예제 #1
0
        private void EnsureProfile()
        {
            if (DayNightProfile == null)
            {
                DayNightProfile = Resources.Load <WeatherMakerDayNightCycleProfileScript>("WeatherMakerDayNightCycleProfile_Default");
            }

            if (Application.isPlaying)
            {
                DayNightProfile = ScriptableObject.Instantiate(DayNightProfile);
            }
        }