Exemple #1
0
        /// <summary>
        /// Method responsible for opening the Dialogue Window
        /// where the node system is placed.
        /// This overload is called when the program tries to load
        /// an already existing Dialogue
        /// </summary>
        /// <param name="ds">Dialogue to be loaded</param>
        public static void OpenDialogueGraphWindow(DialogueScript ds)
        {
            DialogueGraph window = GetWindow <DialogueGraph>();

            window.titleContent = new GUIContent(text: ds.DialogueName);
            SaveLoadUtils svUtil = new SaveLoadUtils();

            svUtil.LoadDialogues(window.graphview, ds);
        }
Exemple #2
0
 /// <summary>
 /// Method called when the program starts
 /// </summary>
 private void Awake()
 {
     svUtil = new SaveLoadUtils();
 }