public void InitFullGrid() { InitLayerGameObj(); gridNodeList.Clear(); int tempX = gridXCount; int tempY = gridYCount; if (tempX <= 0) { return; } for (int i = 0; i < tempY; i++) { for (int j = 0; j < tempX; j++) { int index = j + i * tempX; EditorMoveGridNode item = new EditorMoveGridNode(); item.index = index; item.nodeType = 1; gridNodeList.Add(item); } } InitResNode(); }
//checkRunableHeight public void CopyTo(ref EditorMoveGridNode node) { node.nodeType = this.nodeType; }