IEnumerator WalkAway() { ScoreController.AppendScore(); playerController.myAnim.SetTrigger("Win"); yield return(new WaitForSeconds(1.5f)); character.gameObject.SetActive(false); playerUI.SetActive(false); winUI.SetActive(true); PlayerLife.mainAudio.Stop(); AudioSource.PlayClipAtPoint(winSound, transform.position, 1f); }