IEnumerator onOpenTaskDialog() { UILayout.Instance.BottomOut(); MainArea.Instance.Hide(); yield return(new WaitForSeconds(0.6f)); TaskDialog.Popup(); }