public static void UnregisterDialog(DialogLogic dialogLogic)
 {
     if (DialogManager.Instance)
     {
         DialogManager.Instance.dialogTypes.Remove(dialogLogic.GetType());
     }
 }
#pragma warning restore 0649

        public static void RegisterDialog(DialogLogic dialogLogic)
        {
            if (DialogManager.IsInitialized)
            {
                DialogManager.Instance.dialogTypes.Add(dialogLogic.GetType(), dialogLogic);
            }
            else
            {
                DialogManager.OnInitialized += () =>
                {
                    DialogManager.Instance.dialogTypes.Add(dialogLogic.GetType(), dialogLogic);
                };
            }
        }
Exemplo n.º 3
0
 public static void UnregisterDialog(DialogLogic dialogLogic)
 {
     dialogTypes.Remove(dialogLogic.GetType());
 }
Exemplo n.º 4
0
 public static void RegisterDialog(DialogLogic dialogLogic)
 {
     dialogTypes.Add(dialogLogic.GetType(), dialogLogic);
 }