//private static int newnamenumber = 0; //public static string genuniquename() //{ // var newname = "uniqnodename-" + newnamenumber; // newnamenumber++; // return newname; //} public LcNode(LinkCloud lc, string name, Vector3 v) { this.lc = lc; this.name = name; this.pt = v; wegtos = null; astarInit(); }
//private static int newnamenumber = 0; //public static string genuniquename() //{ // var newname = "uniqlinkname-" + newnamenumber; // newnamenumber++; // return newname; //} public LcLink(LinkCloud lc, string name, LcNode node1, LcNode node2) { this.lc = lc; this.name = name; this.node1 = node1; this.node2 = node2; len = Vector3.Distance(node1.pt, node2.pt); linkLink(); }