IEnumerator _PlayEndCards(string s, string _scene) { endCard.PlayCard(); yield return(new WaitForSeconds(3)); finalCard.PlayCard(_scene); finalCard.SetText(s); }
IEnumerator _PlayFinalCard(float t) { AudioManager audioManager = GameObject.Find("AudioManager").GetComponent <AudioManager>(); audioManager.SetBackgroundMusicVolume(0); finalCard.PlayCard("sbx"); yield return(null); }