// void Start() { if (EnviroSky.instance == null) { Debug.Log("No EnviroSky in scene! This component will be disabled!"); this.enabled = false; return; } if (GameObject.Find("UnderWaterCameraEffects") != null) { aquasUnderWater = GameObject.Find("UnderWaterCameraEffects").GetComponent <AQUAS_LensEffects> (); } SetupEnviroWithAQUAS(); }
private void Start() { if (Object.op_Equality((Object)EnviroSky.instance, (Object)null)) { Debug.Log((object)"No EnviroSky in scene! This component will be disabled!"); ((Behaviour)this).set_enabled(false); } else { if (Object.op_Inequality((Object)GameObject.Find("UnderWaterCameraEffects"), (Object)null)) { this.aquasUnderWater = (AQUAS_LensEffects)GameObject.Find("UnderWaterCameraEffects").GetComponent <AQUAS_LensEffects>(); } this.defaultDistanceFog = EnviroSky.instance.fogSettings.distanceFog; this.defaultHeightFog = EnviroSky.instance.fogSettings.heightFog; this.SetupEnviroWithAQUAS(); } }
void Start() { if (EnviroSkyMgr.instance == null) { Debug.Log("No EnviroSky Manager in scene! This component will be disabled!"); this.enabled = false; return; } if (GameObject.Find("UnderWaterCameraEffects") != null) { aquasUnderWater = GameObject.Find("UnderWaterCameraEffects").GetComponent <AQUAS_LensEffects> (); } defaultDistanceFog = EnviroSkyMgr.instance.FogSettings.distanceFog; defaultHeightFog = EnviroSkyMgr.instance.FogSettings.heightFog; SetupEnviroWithAQUAS(); }