public IEnumerator popup(float time) { m_isEffect = true; m_GIController.OnEnable(); Vector3 scale = m_DialogSize; iTween.ScaleTo(this.gameObject, scale, time); while (gameObject.transform.localScale != scale) { yield return(new WaitForSeconds(0)); } m_TextMeshEffect.Typing(); while (m_TextMeshEffect.IsEffect) { yield return(new WaitForSeconds(0)); } m_isEffect = false; }