예제 #1
0
        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;
            }
        }
예제 #2
0
        public override void OnEnter()
        {
            GameData.instance.AddActivityLog(detail.GetStringRef());

            if (!isWaitClose.Value)
            {
                Finish();
            }
        }
예제 #3
0
        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;
            }
        }