private void InitImageEffects()
    {
        if (addEnviroSkyRendering)
        {
            skyRender = myCam.gameObject.GetComponent <EnviroSkyRendering>();

            if (skyRender == null)
            {
                skyRender = myCam.gameObject.AddComponent <EnviroSkyRendering>();
            }

            skyRender.isAddionalCamera = true;

#if UNITY_EDITOR
            string[] assets = UnityEditor.AssetDatabase.FindAssets("enviro_spot_cookie", null);
            for (int idx = 0; idx < assets.Length; idx++)
            {
                string path = UnityEditor.AssetDatabase.GUIDToAssetPath(assets[idx]);
                if (path.Length > 0)
                {
                    skyRender.DefaultSpotCookie = UnityEditor.AssetDatabase.LoadAssetAtPath <Texture>(path);
                }
            }
#endif
        }

        if (addEnviroSkyPostProcessing)
        {
            enviroPostProcessing = myCam.gameObject.GetComponent <EnviroPostProcessing>();

            if (enviroPostProcessing == null)
            {
                enviroPostProcessing = myCam.gameObject.AddComponent <EnviroPostProcessing>();
            }
        }
    }
    private void InitImageEffects()
    {
        if (addEnviroSkyRendering)
        {
            skyRender = myCam.gameObject.GetComponent <EnviroSkyRenderingLW>();

            if (skyRender == null)
            {
                skyRender = myCam.gameObject.AddComponent <EnviroSkyRenderingLW>();
            }

            skyRender.isAddionalCamera = true;
        }

        if (addEnviroSkyPostProcessing)
        {
            enviroPostProcessing = myCam.gameObject.GetComponent <EnviroPostProcessing>();

            if (enviroPostProcessing == null)
            {
                enviroPostProcessing = myCam.gameObject.AddComponent <EnviroPostProcessing>();
            }
        }
    }