public void EstablishLink(CNode other) { foreach (CLink checkLink in parentCC.links) { if (!CanEstablishLink(other, checkLink) && !other.CanEstablishLink(this, checkLink)) { return; } } CLink createdLink = new GameObject().AddComponent <CLink>(); createdLink.EstablishLink(this, other, parentCC); }