private void setDialogTag(DIALOG_TAG_NAME tg) { if (dialogMessageController == null) { dialogMessageController = dialogMsg.GetComponentInChildren <DialogMessageController>(); } dialogMessageController.setDiglogTag((int)tg); }
private void OnButtonOkClickDelegate() { Debug.Log("OnButtonOkClickDelegate"); hideDialog(); DIALOG_TAG_NAME tag = getDialogTag(); if (tag == DIALOG_TAG_NAME.TAG_CONGRATULATION) { //if still have words to review, show alert to inform //else do nothing, just close _loadRemainWordsToReview(); } }
private void OnButtonTwoClickDelegate() { Debug.Log("OnButtonTwoClickDelegate"); hideDialog(); DIALOG_TAG_NAME tag = getDialogTag(); if (tag == DIALOG_TAG_NAME.TAG_NOT_COMPLETED_TARGET) { OnBtnStartClickHandle(); } else if (tag == DIALOG_TAG_NAME.TAG_STILL_HAVE_MORE_WORDS) { OnBtnStartClickHandle(); } }