IEnumerator LinkReappearingCoroutine() { link.appearing = true; link.gameObject.SetActive(true); link.StartCoroutine(link.AppearingCouroutine()); yield return(new WaitUntil(() => link.appearing == false)); ghost.GetComponent <MeshRenderer>().enabled = true; ghost.GetComponent <Materialize>().active = true; canRewind = true; actualLinkReappearingCoroutine = null; }