IEnumerator openMsgBox(string _header, MsgBoxCallback _callback = null, MSGBOX_BTN_TYPE _type = MSGBOX_BTN_TYPE.OK) { while (msgBox.gameObject.activeInHierarchy) { yield return(null); } msgBox.gameObject.SetActive(true); msgBox.Init(_header, _callback, _type); }
public void OpenMsgBox(string _header, MsgBoxCallback _callback = null, MSGBOX_BTN_TYPE _type = MSGBOX_BTN_TYPE.OK) { StartCoroutine(openMsgBox(_header, _callback, _type)); }