private void Awake() { if (!getVertices) { getVertices = GetComponent <GetVertices>(); } }
public object Get(GetVertices query) { var verts = new List <SimpleVertex>(); foreach (AbstractBlock vertex in ExprTree.Tree.Vertices.ToArray()) { verts.Add(new SimpleVertex(vertex)); } //Response.AddHeader("Access-Control-Allow-Origin", "*"); return(verts.ToArray()); }