void Start() { uSM = uSkyManager.instance; if (uSM) { uSM.SkyUpdate = true; } }
void Start() { uSM = uSkyManager.instance; if (uSM != null && !uSM.SkyUpdate) { InitUpdate(); } }
void Start() { uSM = uSkyManager.instance; if (PlayTimelapse) { uSM.SkyUpdate = true; } actualTime = uSM.Timeline; }
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(); } } }
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>(); } }
void Start() { uSM = uSkyManager.instance; UpdateFogUniform(FogMaterial); UpdateSkyboxUniform(); }
void Start() { hour = System.DateTime.Now.Hour; skyboxManager = GameObject.Find("skybox").GetComponent <uSkyManager>(); skyboxManager.Timeline = hour; }
// Use this for initialization void Start() { uSM = uSkyManager.instance; RenderSettings.fogColor = currentFogColor(); }