예제 #1
0
    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);
    }
예제 #2
0
 public void OpenMsgBox(string _header, MsgBoxCallback _callback = null, MSGBOX_BTN_TYPE _type = MSGBOX_BTN_TYPE.OK)
 {
     StartCoroutine(openMsgBox(_header, _callback, _type));
 }