Пример #1
0
    void LateUpdate()
    {
        if (!VectorLine.camTransformExists)
        {
            return;
        }

        // Draw3DAuto lines
        for (int i = 0; i < lineCount; i++)
        {
            if (lines[i].rectTransform != null)
            {
                lines[i].Draw3D();
            }
            else
            {
                RemoveLine(i--);
            }
        }

        // Only redraw static objects if camera is moving
        if (VectorLine.CameraHasMoved())
        {
            VectorManager.DrawArrayLines();
        }

        VectorLine.UpdateCameraInfo();

        // Always redraw dynamic objects
        VectorManager.DrawArrayLines2();
    }