Example #1
0
        public void OnDestroy()
        {
            ResNode.DestroyRes(ref m_LineRender);
            m_LineRender = null;

            FadeInOutMaterialColor = null;
            FadeInOutMaterialFloat = null;
            UVTextureAnimator      = null;
            UVScroll     = null;
            LocalSrcObj  = null;
            LocalDstObj  = null;
            GolbalDstObj = null;
            GolbalSrcObj = null;
            StopMaterialControl();
        }
Example #2
0
 public void OnDestroy()
 {
     FadeInOutMaterialColor = null;
     FadeInOutMaterialFloat = null;
     UVTextureAnimator      = null;
     UVScroll      = null;
     HostTransform = null;
     hostRender    = null;
     HostCamera    = null;
     if (m_InstanceMat)
     {
         ResNode.DestroyRes(ref m_InstanceMat);
         if (HostGo)
         {
             ResNode.DestroyRes(ref HostGo);
         }
     }
 }
Example #3
0
 /// <summary>
 /// 拷贝编辑器变量
 /// </summary>
 /// <param name="FromInstance">从哪一个拷贝</param>
 public void CopyInspectorParamsTo(Effect_FadeInOutMaterialColor FromInstance)
 {
     RunMode            = FromInstance.RunMode;
     valueMode          = FromInstance.valueMode;
     curve.keys         = FromInstance.curve.keys;
     curve_DuartionTime = FromInstance.curve_DuartionTime;
     cure_DelayTime     = FromInstance.cure_DelayTime;
     curveScale         = FromInstance.curveScale;
     ColorName          = FromInstance.ColorName;
     FadeAlpha          = FromInstance.FadeAlpha;
     Loop            = FromInstance.Loop;
     FadeInDealy     = FromInstance.FadeInDealy;
     FadeInDuartion  = FromInstance.FadeInDuartion;
     FadeInFrom      = FromInstance.FadeInFrom;
     FadeInTo        = FromInstance.FadeInTo;
     FadeOutDelay    = FromInstance.FadeOutDelay;
     FadeOutDuartion = FromInstance.FadeOutDuartion;
     FadeOutFrom     = FromInstance.FadeOutFrom;
     FadeOutTo       = FromInstance.FadeOutTo;
 }
Example #4
0
 public void OnEnable()
 {
     pa = target as Effect_FadeInOutMaterialColor;
 }