Esempio n. 1
0
 protected bool DestroyImageEffect(UEffectImageParam _param)
 {
     if (_param.AttachImageEffect != null && m_EffectImageTypeList.ContainsKey(_param.AttachImageEffect) && m_EffectImageTypeList[_param.AttachImageEffect] == _param.AttachParent)
     {
         ImageEffectManager.API_DisableImageEffect <BlurAndDownScreen>();
         m_EffectImageTypeList.Remove(_param.AttachImageEffect);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
        protected bool CreateImageEffect(UEffectImageParam _param)
        {
            if (_param.AttachImageEffect != null && !m_EffectImageTypeList.ContainsKey(_param.AttachImageEffect))
            {
                ImageEffectManager.API_EnableImageEffect(_param.AttachImageEffect);
                m_EffectImageTypeList.Add(_param.AttachImageEffect, _param.AttachParent);
                return(true);
            }

            return(false);
        }