private void GameWin() { Sound.Instance.PlaySoundClip(SoundEnum.Enemy_Malaria_Death, 1); winScreen.Show(); topBar.Hide(); EventManager.Instance.StartPause(); }
private IEnumerator WinSequence() { yield return(new WaitForSeconds(.5f)); WinScreen winScreen = WinScreen.instance; if (winScreen) { winScreen.Show(); } yield return(new WaitForSeconds(2)); ScreenTransition screenTransition = ScreenTransition.instance; string scenePath = scenePath = "Assets/Scenes/WorldsScene.unity"; if (screenTransition) { screenTransition.Call(scenePath); } else { ScreenTransition.LoadScene(scenePath); } }