Esempio n. 1
0
        void Batch()
        {
            int len = max;

            if (scripts != null)
            {
                for (int i = 0; i < len; i++)
                {
                    var grap = scripts[i] as HGraphics;
                    if (grap != null)
                    {
                        grap.UpdateMesh();
                    }
                }
            }
            ClearMesh();
            HBatch.Batch(this, PipeLine);
        }
Esempio n. 2
0
        public void Batch()
        {
            int len = max;

            if (scripts != null)
            {
                for (int i = 0; i < len; i++)
                {
                    var grap = scripts[i] as HGraphics;
                    if (grap != null)
                    {
                        grap.UpdateMesh();
                    }
                }
            }
            vertex.Clear();
            uv.Clear();
            uv1.Clear();
            uv2.Clear();
            uv3.Clear();
            uv4.Clear();
            colors.Clear();
            HBatch.Batch(this, PipeLine);
        }