Example #1
0
    IEnumerator WaitPictures()
    {
        yield return(new WaitForSeconds(1));

        desktop.CloseScreen();
        pictures.Open();
        yield return(new WaitForSeconds(1));

        for (int i = 0; i < 3; i++)
        {
            pictures.Play(i);
            yield return(new WaitForSeconds(3));
        }
        pictures.Close();
        desktop.Openscreen();
    }