示例#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
        /// <summary>
        /// 拷贝编辑器变量
        /// </summary>
        /// <param name="FromInstance">从哪一个拷贝</param>
        public void CopyInspectorParamsTo(Effect_UVTextureAnimator FromInstance)
        {
            RunMode             = FromInstance.RunMode;
            TexturePropertyName = FromInstance.TexturePropertyName;

            Rows        = FromInstance.Rows;
            Columns     = FromInstance.Columns;
            Fps         = FromInstance.Fps;
            OffsetMat   = FromInstance.OffsetMat;
            SelfTiling  = FromInstance.SelfTiling;
            AniTimes    = FromInstance.AniTimes;
            fStartDelay = FromInstance.fStartDelay;
            IsReverse   = FromInstance.IsReverse;
            IsRandomOffsetForInctance = FromInstance.IsRandomOffsetForInctance;
        }
示例#3
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);
         }
     }
 }
 public void OnEnable()
 {
     pa = target as Effect_UVTextureAnimator;
 }