private void CheckWinConditions() { int stars = currentLevel.CalculateStars(); gameplayPaused = true; if (stars > 0) { EventManager.TriggerEvent("Level Won"); playerDataSO.currentLevel++; playerDataSO.SaveLevel(); } else { EventManager.TriggerEvent("Level Lost"); } }