コード例 #1
0
    public void StartPlaylist()
    {
        active = true;
        GameObject go = Instantiate(transitionScreen) as GameObject;

        ngsm = go.GetComponent <NextGameScreenManager>();
        ngsm.nextGameText.text = playlist[currentIndex] + "\ncomenzará en";
        StartCoroutine(NextGameScreen(timeBetweenGames));
        Debug.Log("termina nextgame");
    }
コード例 #2
0
    private IEnumerator DelayedNextGameScreen()
    {
        Debug.Log("crear pantalla");
        yield return(new WaitForSeconds(timeToScreen));

        GameObject go = Instantiate(transitionScreen) as GameObject;

        ngsm = go.GetComponent <NextGameScreenManager>();
        ngsm.nextGameText.text = playlist[currentIndex] + "\ncomenzará en";
        StartCoroutine(NextGameScreen(timeBetweenGames));
        Debug.Log("termina nextgame");
    }