Beispiel #1
0
 public static void OpenEdit(DialogCollection collection)
 {
     var window = GetWindow<DialogEditor>("Dialog Editor");
     window.Close();
     window = GetWindow<DialogEditor>("Dialog Editor");
     window.minSize = new Vector2(600, 400);
     window.Load(collection);
 }
 /// <summary>
 ///     Loads all saved dialogs from the specified collection
 /// </summary>
 /// <returns>returns true if loading was successful</returns>
 public bool LoadDialogs(DialogCollection collection)
 {
     if (collection == null || collection.Dialogs.Count == 0)
     {
         return false;
     }
     _conversations = collection.Dialogs;
     return true;
 }
Beispiel #3
0
 public void Load(DialogCollection collection)
 {
     Initialize();
     SourceCollection = collection;
 }