예제 #1
0
    IEnumerator IntroCoroutine()
    {
        title.Appear();
        yield return(new WaitForSeconds(2f));

        blackMask.FadeIn();
        yield return(new WaitForSeconds(blackMask.fadeRate));

        playButton.Appear();
        highScoreLabel.Appear();
        highScoreText.Appear();
        optionsButton.Appear();
    }
예제 #2
0
    void Start()
    {
        gameOver.Disappear();
        scoreLabel.Disappear();
        scoreText.Disappear();
        continueButton.Disappear();
        redMask.FadeIn();

        lives.RegisterPostchangeEvent(() => { if (lives.Value == 0)
                                              {
                                                  OnGameOver.Invoke();
                                              }
                                      });
    }
예제 #3
0
    IEnumerator IntroSequence()
    {
        yield return(new WaitForSeconds(.6f));

        blackMask.FadeIn();
        yield return(new WaitForSeconds(1f));

        characters.SetActive(true);
        ui.GetComponent <Animator>().SetTrigger("In");
    }