void OpenDialog() { string textRef = dialogTexts[mCurIndex].GetStringRef(); if (!string.IsNullOrEmpty(textRef)) { if (clearModals.Value) { var uiMgr = ModalManager.main; if (uiMgr.GetTop() != modal.Value) { uiMgr.CloseAll(); } } if (usePortrait.Value) { ModalDialog.OpenApplyPortrait(modal.Value, portrait.Value as Sprite, nameText.GetStringRef(), textRef, OnDialogNext); } else { ModalDialog.Open(modal.Value, nameText.GetStringRef(), textRef, OnDialogNext); } mIsNext = false; } else { mCurIndex++; mIsNext = true; } }
public override void OnEnter() { GameData.instance.AddActivityLog(detail.GetStringRef()); if (!isWaitClose.Value) { Finish(); } }
void OpenDialog() { string textRef = dialogTexts[mCurIndex].GetStringRef(); if (!string.IsNullOrEmpty(textRef)) { if (usePortrait.Value) { ModalDialog.OpenApplyPortrait(modal.Value, portrait.Value as Sprite, nameText.GetStringRef(), textRef, OnDialogNext); } else { ModalDialog.Open(modal.Value, nameText.GetStringRef(), textRef, OnDialogNext); } mIsNext = false; } else { mCurIndex++; mIsNext = true; } }