//楼梯加入列表 private void addStairsLst(Vector3Int current, Vector3Int prev) { stairVector tmpPath = new stairVector(); tmpPath.currentVector = current; tmpPath.prevVector = prev; stairsLst.Add(tmpPath); }
public void createStairsLst() { for (int indexStairs = 0; indexStairs < stairsLst.Count; indexStairs++) { stairVector tmpPath = stairsLst[indexStairs]; createStairs(tmpPath.currentVector, tmpPath.prevVector, false); } // indexStairs++; }