public void ReturnBlocks(MapManager mapManager) { int length = blockArray.GetLength(0); int c = 0; for (int i = 0; i < length; i++) { for (int j = 0; j < length; j++) { if (blockArray[j, i] == 0) { continue; } Vector2Int p = point + new Vector2Int(-length / 2 + i, -(-length / 2 + j)); mapManager.AddBlock(blocks[c++], p); Debug.Log(p); } } Destroy(gameObject); }