Esempio n. 1
0
 private void Awake()
 {
     if (weatherManager == null)
     {
         weatherManager = FindObjectOfType <WeatherManager>();
     }
 }
Esempio n. 2
0
        private void Awake()
        {
            Particle       = new WeatherParticle();
            GlobalProperty = new WeatherGlobalProperty();
            Skybox         = new WeatherSkybox();
            Ambient        = new WeatherAmbient();

            InitWeatherControlData();

            WeatherManager.SetWeatherControl(this);
        }
Esempio n. 3
0
 private void OnDestroy()
 {
     WeatherManager.SetWeatherControl(null);
 }