public void Destroy()
    {
        anim = null;
        mesh = null;

        if (cullingBounds != null)
        {
            cullingBounds.Release();
            cullingBounds = null;
        }

        DestroyCullingGroup();

        if (mtrls != null)
        {
            for (int i = 0; i < mtrls.Length; ++i)
            {
                mtrls[i].Destroy();
                mtrls[i] = null;
            }
            mtrls = null;
        }

        if (texture != null)
        {
            //Object.DestroyImmediate(texture);
            texture = null;
        }

        if (players != null)
        {
            players.Clear();
            players = null;
        }
    }
Ejemplo n.º 2
0
 private void FillEvents(GPUSkinningClip clip, GPUSkinningBetterList <GPUSkinningAnimEvent> events)
 {
     events.Clear();
     if (clip != null && clip.events != null && clip.events.Length > 0)
     {
         events.AddRange(clip.events);
     }
 }
Ejemplo n.º 3
0
 public GPUSkinningCycleList(int bufferIncrement)
 {
     list = new GPUSkinningBetterList <T>(bufferIncrement);
 }