public void SetHighLightColor(float r, float g, float b, float a)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.HighLightColor = new Color(r, g, b, a);
            }
        }
        public void FadeOut()
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.playFadeout();
            }
        }
        public void HighLight()
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.playHighlight();
            }
        }
        public void ResetShader(bool bCloseOutLight)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.resetShader(bCloseOutLight);
            }
        }
        public void PlayOutLight(float r, float g, float b, float a)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.MainBlendColor = new Color(r, g, b, 100 / 255f);
                oMatAniAssis.PlayOutLineEffect();
            }
        }
        public void PlayOutLineEffect(float r, float g, float b, float a, float width)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                oMatAniAssis.OutlineColor = new Color(r, g, b, a);
                oMatAniAssis.OutlineWidth = width;
                oMatAniAssis.PlayOutLineEffect();
            }
        }
 private MaterialAnimationAssistant GetMatAniAssistant()
 {
     if (!m_oMatAniAssis)
     {
         m_oMatAniAssis = gameObject.GetComponent <MaterialAnimationAssistant>();
         if (!m_oMatAniAssis)
         {
             m_oMatAniAssis = gameObject.AddComponent <MaterialAnimationAssistant>();
         }
     }
     return(m_oMatAniAssis);
 }
        public void SetFrozen(bool bEnable)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                if (bEnable)
                {
                    oMatAniAssis.playFrozenEffect();
                }
                else
                {
                    oMatAniAssis.endFrozenEffect();
                }
            }
        }
        public void SetPetrify(bool bEnable)
        {
            MaterialAnimationAssistant oMatAniAssis = GetMatAniAssistant();

            if (oMatAniAssis)
            {
                if (bEnable)
                {
                    oMatAniAssis.playFossilisedEffect();
                }
                else
                {
                    oMatAniAssis.endFossilisedEffect();
                }
            }
        }