private void AnimateProperties(Material material)
        {
            foreach (ShaderColorProperty property in settings.ColorProperties)
                material.DOColor (property.maxValue, property.name, animationDuration).SetLoops(loops, LoopType.Yoyo);

            foreach (ShaderFloatProperty property in settings.FloatProperties)
                material.DOFloat (property.maxValue, property.name, animationDuration).SetLoops(loops, LoopType.Yoyo).OnStepComplete(OnLoopCompleted);
        }
 protected override Tween DOPlay()
 {
     if (null == m_Material)
     {
         return(null);
     }
     // end if
     if (!string.IsNullOrEmpty(m_property))
     {
         return(m_Material.DOFloat(m_toFloat, m_property, m_duration));
     }
     else if (m_propertyID != -1)
     {
         return(m_Material.DOFloat(m_toFloat, m_propertyID, m_duration));
     } // end if
     return(null);
 }