IEnumerator WaitAndGameWin() { Confetties.SetActive(true); cubeManager.PlaceFinalObject(); SoundManager.Instance.StopAllSounds(); SoundManager.Instance.playSound(SoundManager.GameSounds.Win); yield return(new WaitForSeconds(1)); if (PlayerPrefs.GetInt("VIBRATION") == 1) { TapticManager.Impact(ImpactFeedback.Light); } currentLevel++; if (Particle != null) { Particle.SetActive(true); } PlayerPrefs.SetInt("LevelId", currentLevel); cubeManager.CloseAllCubeScripts(); WinPanel.SetActive(true); InGamePanel.SetActive(false); }