public void Connect(CityBuilderPath p, out CityNode enter, out CityNode exit, out CityNode p1, out CityNode p2) { if (right == p) { enter = eRight; exit = wRight; p1 = pBottomRight; p2 = pTopRight; } else if (left == p) { enter = eLeft; exit = wLeft; p1 = pTopLeft; p2 = pBottomLeft; } else if (bottom == p) { enter = eBottom; exit = wBottom; p1 = pBottomLeft; p2 = pBottomRight; } else { enter = eTop; exit = wTop; p1 = pTopRight; p2 = pTopLeft; } }
public void Connect(CityBuilderPath p, out CityNode start, out CityNode end, out CityNode p1, out CityNode p2) { start = exit; end = enter; p1 = this.p1; p2 = this.p2; }