public override async void Load()
        {
            if (!await SaveSystemAPI.ExistsAsync(this.identifierField.text))
            {
                Debug.Log("Data not found");
                return;
            }
            for (int i = 0; i < this.spawnedInstances.Count; i++)
            {
                DestroyImmediate(this.spawnedInstances[i]);
            }
            this.spawnedInstances.Clear();
            await SaveSystemAPI.LoadIntoAsync(this.identifierField.text, this.spawnedInstances);

            Debug.Log("Data loaded successfully");
        }
Exemplo n.º 2
0
 public override async void Load()
 {
     await SaveSystemAPI.LoadIntoAsync(this.identifierField.text, this.cube.transform);
 }
Exemplo n.º 3
0
 public async void LoadDictionary()
 {
     await SaveSystemAPI.LoadIntoAsync("gamno.txt", integers);
 }