using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Fateforge { [RequireComponent(typeof(RectTransform),typeof(CanvasRenderer))] public sealed class MatchConnections : MaskableGraphic { readonly List endpoints=new List(); public void Clear(){endpoints.Clear();SetVerticesDirty();} public void Connect(Vector2 a,Vector2 b){endpoints.Add(a);endpoints.Add(b);SetVerticesDirty();} protected override void OnPopulateMesh(VertexHelper mesh) { mesh.Clear();for(int i=0;i+1