Пример #1
0
 public static bool TryGetDialogEvent(string name, out DialogEvent de)
 {
     if (dialogEvents.ContainsKey(name))
     {
         de = dialogEvents[name];
         return(true);
     }
     de = null;
     return(false);
 }
Пример #2
0
 public static void AddDialogEvent(string name, DialogEvent de)
 {
     if (!dialogEvents.ContainsKey(name))
     {
         dialogEvents.Add(name, de);
     }
     else
     {
         dialogEvents[name] = de;
     }
 }