예제 #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();
     }
 }
예제 #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);
 }