/// <summary> /// 描画 /// </summary> private void Draw() { if (!draw) { return; } eMeshes[0] = mainLine.MakeLine(width, color); eMeshes[1] = subLine.MakeLine(width, color * subLineColorScale); mf.mesh = EasyMesh.ToMesh(eMeshes); draw = false; }
/// <summary> /// 描画 /// </summary> private void Draw() { if (!draw) { return; } EasyMesh[] eMeshes = new EasyMesh[2]; eMeshes[0] = polyLine.MakeSubLineRange(0f, nowDistance, width, color); eMeshes[1] = noticeLine.MakeLine(width, color); mf.mesh = EasyMesh.ToMesh(eMeshes); draw = false; }