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");
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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");
 }
 public static void Save <T>(string identifier, T value)
 {
     SaveSystemAPI.SaveAsync(identifier, value);
 }
Ejemplo n.º 6
0
 public async void SaveDictionary()
 {
     await SaveSystemAPI.SaveAsync("gamno.txt", integers);
 }
 public override void Save()
 {
     SaveSystemAPI.SaveAsync(this.identifierField.text, this.dataField.text);
 }