예제 #1
0
 public void UF_OnReset()
 {
     preview       = null;
     this.texture  = null;
     m_IsDrag      = false;
     m_RotateAngle = 0;
 }
예제 #2
0
        internal RenderPreview UF_AcquirePreview()
        {
            RenderPreview ret = null;

            if (m_PoolPreview.Count > 0)
            {
                ret = m_PoolPreview.Pop();
            }
            if (ret == null)
            {
                s_Index++;
                ret = new RenderPreview(s_Index.ToString(), new Vector3(s_Space * s_Index, 0, 0));
            }
            ret.root.transform.parent = m_Root.transform;
            ret.UF_SetAvtive(true);
            return(ret);
        }
예제 #3
0
 internal void UF_ReleasePreview(RenderPreview v)
 {
     if (v == null)
     {
         return;
     }
     if (m_PoolPreview.Count < s_MaxPreview)
     {
         v.UF_SetAvtive(false);
         v.UF_Clear();
         m_PoolPreview.Push(v);
     }
     else
     {
         v.UF_SetAvtive(false);
         v.UF_Release();
     }
 }