コード例 #1
0
 public override void Save()
 {
     this.playerData.name          = this.playerNameField.text;
     this.playerData.currentHealth = this.playerCurrentHealthSlider.value;
     SaveSystemAPI.SaveAsync(this.identifierField.text, this.playerData);
     Debug.Log("Player data saved successfully");
 }
コード例 #2
0
 public virtual void Save()
 {
     GameObject[] gameObjects = new GameObject[this.autoSaves.Count];
     for (int i = 0; i < this.autoSaves.Count; i++)
     {
         if (this.autoSaves[i] == null)
         {
             continue;
         }
         gameObjects[i] = this.autoSaves[i].gameObject;
     }
     SaveSystemAPI.SaveAsync(this.identifier, gameObjects, this.settingsPreset.CustomSettings);
 }
コード例 #3
0
 public override void Save()
 {
     SaveSystemAPI.SaveAsync(this.identifierField.text, this.cube.transform);
 }
 public override void Save()
 {
     SaveSystemAPI.SaveAsync(this.identifierField.text, this.spawnedInstances);
     Debug.Log("Data saved successfully");
 }
コード例 #5
0
 public static void Save <T>(string identifier, T value)
 {
     SaveSystemAPI.SaveAsync(identifier, value);
 }
コード例 #6
0
 public async void SaveDictionary()
 {
     await SaveSystemAPI.SaveAsync("gamno.txt", integers);
 }
コード例 #7
0
 public override void Save()
 {
     SaveSystemAPI.SaveAsync(this.identifierField.text, this.dataField.text);
 }