public void DoneFinished()
        {
            if (DoneCallback != null)
            {
                DoneCallback(this);
            }

            DialogGameObject.SetActive(false);

            if (_destroyOnClose)
            {
                Destroy(gameObject);
            }

            // decrease open count - not thread safe, but should be ok!
            DialogManager.Instance.Count--;
            IsShown = false;

            if (_swapToDialogInstance != null)
            {
                _swapToDialogInstance.Show(destroyOnClose: false);
                _swapToDialogInstance = null;
            }
        }
Esempio n. 2
0
        protected override void GameSetup()
        {
            DialogInstance = GetComponent <DialogInstance>();

            Assert.IsNotNull(DialogInstance.DialogGameObject, "Ensure that you have set the script execution order of dialog instance in settings (see help for details).");
        }
 public void SwapTo(DialogInstance dialogInstance)
 {
     _swapToDialogInstance = dialogInstance;
     Done();
 }