IEnumerator Start() { panels.ShowStartMenu(); playMusic = FindObjectOfType <PlayMusic>().GetComponent <PlayMusic>(); startingScreenAnimator.Play("StartingAnim"); yield return(new WaitForSeconds(startingAnim.length)); panels.HideFirstAnimation(); }
IEnumerator Start() { panels.ShowStartMenu(); playMusic = FindObjectOfType <PlayMusic>().GetComponent <PlayMusic>(); startingScreenAnimator.Play("StartingAnim"); yield return(new WaitForSeconds(startingAnim.length)); panels.HideFirstAnimation(); }