private void TurnCleanup() { ScoreTurn(); colorOffset += 0.07f + Random.value / 6f; selectedPositions.Clear(); possiblePositions.Clear(); for (int i = 0; i < cardSelector.VisibleCards(); i++) { targetCard = cardSelector.SelectCard(i); targetShape = targetCard.shape; possibleToPlace.Value = true; hasSelection.Value = true; UpdatePossibleTiles(); if (possiblePositions.Count > 0) { break; } else { selectedPositions.Clear(); possiblePositions.Clear(); } } if (possiblePositions.Count == 0) { gameOverEvent.Raise(); } }