Пример #1
0
        private void RenderLines(ScriptableRenderContext context, Camera cam)
        {
            if (!Application.isPlaying)
            {
                return;
            }

            if (cam != GameCamera.Camera)
            {
                return;
            }

            GL.PushMatrix();
            LineMat.SetPass(0);
            GL.LoadOrtho();

            GL.Begin(GL.LINES);

            Unit.GL_DrawAllSelected();
            UnitSelection.GL_Draw();

            GL.End();
            GL.PopMatrix();
        }