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(); }
void Start() { gameOver.Disappear(); scoreLabel.Disappear(); scoreText.Disappear(); continueButton.Disappear(); redMask.FadeIn(); lives.RegisterPostchangeEvent(() => { if (lives.Value == 0) { OnGameOver.Invoke(); } }); }
IEnumerator IntroSequence() { yield return(new WaitForSeconds(.6f)); blackMask.FadeIn(); yield return(new WaitForSeconds(1f)); characters.SetActive(true); ui.GetComponent <Animator>().SetTrigger("In"); }