private void OnWillRenderObject()
 {
     if (!Application.isPlaying && Camera.current != null && WeatherMakerLightManagerScript.Instance != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic);
     }
 }
Ejemplo n.º 2
0
 private void OnWillRenderObject()
 {
     if (!Application.isPlaying && Camera.current != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(Camera.current, MeshRenderer.sharedMaterial, gameObject);
     }
 }
Ejemplo n.º 3
0
 protected override void Update()
 {
     base.Update();
     if (SkyPlaneProfile == null)
     {
         SkyPlaneProfile = Resources.Load <WeatherMakerSkyProfileScript>("WeatherMakerSkyProfile_Procedural");
     }
     if (!Application.isPlaying && Camera.main != null)
     {
         SkyPlaneProfile.UpdateSkyPlane(Camera.main, MeshRenderer.sharedMaterial, gameObject);
     }
 }
        protected override void Update()
        {
            base.Update();

            if (SkyPlaneProfile == null)
            {
                SkyPlaneProfile = Resources.Load <WeatherMakerSkyProfileScript>("WeatherMakerSkyProfile_Procedural");
            }
            if (!Application.isPlaying && Camera.main != null && WeatherMakerLightManagerScript.Instance != null)
            {
                SkyPlaneProfile.UpdateSkyPlane(Camera.main, MeshRenderer.sharedMaterial, gameObject, WeatherMakerLightManagerScript.Instance.SunOrthographic);
            }
        }