Exemplo n.º 1
0
 private void GameWin()
 {
     Sound.Instance.PlaySoundClip(SoundEnum.Enemy_Malaria_Death, 1);
     winScreen.Show();
     topBar.Hide();
     EventManager.Instance.StartPause();
 }
Exemplo n.º 2
0
    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);
        }
    }