private IEnumerator showMsgBoxIEtor(string title, string content, List <ButtonEvent> btnEventList) { yield return(null); if (curMsgBox == null) { curMsgBox = MessageBox.CreateMessageBox(); } else { if (!curMsgBox.gameObject.activeSelf) { curMsgBox.gameObject.SetActive(true); } } if (msgBoxTS == null) { msgBoxTS = curMsgBox.gameObject.GetComponent <TweenScale>(); } msgBoxTS.ResetToBeginning(); msgBoxTS.PlayForward(); curMsgBox.ShowMessageBox(title, content, btnEventList); }