#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); }; } }
public static void UnregisterDialog(DialogLogic dialogLogic) { if (DialogManager.Instance) { DialogManager.Instance.dialogTypes.Remove(dialogLogic.GetType()); } }
public static void UnregisterDialog(DialogLogic dialogLogic) { dialogTypes.Remove(dialogLogic.GetType()); }
public static void RegisterDialog(DialogLogic dialogLogic) { dialogTypes.Add(dialogLogic.GetType(), dialogLogic); }