Ejemplo n.º 1
0
 /// <summary>
 /// Tells the Dialogue System to save its state into an AC global variable prior
 /// to saving a game, unless DialogueSystemSceneSync has already saved it.
 /// </summary>
 public void PreSave()
 {
     if (!saveWhenChangingLevels)
     {
         if (DialogueDebug.LogInfo)
         {
             Debug.Log("Adding Dialogue System state to the saved game.");
         }
         AdventureCreatorBridge.SaveDialogueSystemToGlobalVariable();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Tells the Dialogue System to save its state into an AC global variable
 /// prior to changing levels (or saving a game).
 /// </summary>
 public override string SaveData()
 {
     if (saveWhenChangingLevels)
     {
         if (DialogueDebug.LogInfo)
         {
             Debug.Log("Saving Dialogue System state to Adventure Creator.");
         }
         AdventureCreatorBridge.SaveDialogueSystemToGlobalVariable();
     }
     return(string.Empty);
 }