IEnumerator DoPop(UIData uid) { uid.SetActive(false); uid.Close(); yield return(uid.Closing()); uid.Pop(); uid.ui.root.SetActive(false); }