private void SpawnRow(IList <Vector2> positionsList) { IList <ICell> cells = new List <ICell>(); foreach (var position in positionsList) { Vector3 tempPosition = new Vector3(position.x, _board.Height, 0f); GameObject spawnedGameObject = _spawnManager.SpawnRandomPrefab(tempPosition); ICell tempCell = _board.Cells[(int)position.x, (int)position.y]; tempCell.CurrentGameObject = spawnedGameObject; cells.Add(tempCell); } if (_lastSpawnedCell) { _lastFallCell = cells.Last(); } StartFallCommand(cells); }