예제 #1
0
    IEnumerator toasting()
    {
        toaster.setText("Use left joystick to move the chopsticks around");
        toaster.toast();
        yield return(new WaitForSeconds(7f));

        toaster.setText("Use right joystick to move the chopsticks up and down");
        toaster.toast();
        yield return(new WaitForSeconds(5f));

        toaster.setText("Hold on to RT to grab food when you get close");
        toaster.toast();
        yield return(new WaitForSeconds(5f));

        toaster.setText("You have 120 seconds");
        toaster.toast();
        yield return(new WaitForSeconds(5f));

        toaster.setText("Now try it!");
        toaster.toast();
        yield return(new WaitForSeconds(1f));

        Destroy(toaster);
        startGame = true;
        startTime = Time.time;
        //yield return null;
    }