public static bool TryGetDialogEvent(string name, out DialogEvent de) { if (dialogEvents.ContainsKey(name)) { de = dialogEvents[name]; return(true); } de = null; return(false); }
public static void AddDialogEvent(string name, DialogEvent de) { if (!dialogEvents.ContainsKey(name)) { dialogEvents.Add(name, de); } else { dialogEvents[name] = de; } }