Пример #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();
        }
Пример #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);
         }
     }
 }
 /// <summary>
 /// 拷贝编辑器变量
 /// </summary>
 /// <param name="FromInstance">从哪一个拷贝</param>
 public void CopyInspectorParamsTo(Effect_FadeInOutMaterialFloat 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;
     PropertyName       = FromInstance.PropertyName;
     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;
 }
 public void OnEnable()
 {
     pa = target as Effect_FadeInOutMaterialFloat;
 }