Example #1
0
 void Start()
 {
     uSM = uSkyManager.instance;
     if (uSM)
     {
         uSM.SkyUpdate = true;
     }
 }
Example #2
0
 void Start()
 {
     uSM = uSkyManager.instance;
     if (uSM != null && !uSM.SkyUpdate)
     {
         InitUpdate();
     }
 }
Example #3
0
        void Start()
        {
            uSM = uSkyManager.instance;

            if (PlayTimelapse)
            {
                uSM.SkyUpdate = true;
            }

            actualTime = uSM.Timeline;
        }
Example #4
0
 private void OnEnable()
 {
     if (this.skyDome == null)
     {
         this.skyDome = this.InitSkyDomeMesh();
     }
     if (this.skyManager == null)
     {
         this.skyManager = base.GetComponent <uSkyManager>();
     }
 }
 void Start()
 {
     uSM = uSkyManager.instance;
     if (uSM != null)
     {
         if (!uSM.SkyUpdate && uSL != null)
         {
             UpdateCloudMaterial();
         }
     }
 }
Example #6
0
    public override void OnPreviewGUI(Rect r, GUIStyle background)
    {
        uSkyManager sr  = (uSkyManager)target;
        Material    mat = sr.SkyboxMaterial;

        if (mat != null && tmpEditor == null)
        {
            tmpEditor = Editor.CreateEditor(mat);
        }

        if (mat != null && tmpEditor != null)
        {
            tmpEditor.DrawPreview(r);
        }
    }
 private void OnEnable()
 {
     if (this.skyDome == null)
     {
         this.skyDome = this.InitSkyDomeMesh();
     }
     if (this.skyManager == null)
     {
         this.skyManager = base.GetComponent<uSkyManager>();
     }
 }
Example #8
0
 void Start()
 {
     uSM = uSkyManager.instance;
     UpdateFogUniform(FogMaterial);
     UpdateSkyboxUniform();
 }
Example #9
0
 void Start()
 {
     hour                   = System.DateTime.Now.Hour;
     skyboxManager          = GameObject.Find("skybox").GetComponent <uSkyManager>();
     skyboxManager.Timeline = hour;
 }
Example #10
0
 // Use this for initialization
 void Start()
 {
     uSM = uSkyManager.instance;
     RenderSettings.fogColor = currentFogColor();
 }