コード例 #1
0
 private (int[, ], bool[, ]) OverlayGrids(int[,] overlayGrid, bool[,] gridLock)
 {
     int[,] targetGrid = new int[overlayGrid.GetLength(0), overlayGrid.GetLength(1)];
     Grids.ApplyMask(targetGrid, overlayGrid, gridLock); // apply mask to base only where the gridLock has been marked
     Debug.Log("Collapse grids");
     return(targetGrid, gridLock);
 }