private void FillChunksToLoadAndLoaded(int x, int y) { chunksToLoad.Clear(); loadedChunks.Clear(); for (int i = -1; i < 2; i++) { for (int j = -1; j < 2; j++) { var miss = MapCache.ChunkIsMissing(j + x, i + y, true); if (miss) { chunksToLoad.Add(new Vector2Int(j + x, i + y)); } else { loadedChunks.Add(new Vector2Int(j + x, i + y)); } } } }