public void SetNext(TerrainTag innext) { next = innext; Transform [] nextroadPath; nextroadPath = next.getRoadPath(); roadPathTransformArray.Add(nextroadPath[1]); roadPathTransformArray.Add(nextroadPath[2]); }
public void SetPrev(TerrainTag inprev) { prev = inprev; Transform [] prevroadPath; prevroadPath = prev.getRoadPath(); roadPathTransformArray.Insert(0, prevroadPath[prevroadPath.Length - 1]); roadPathTransformArray.Insert(0, prevroadPath[prevroadPath.Length - 2]); }