Exemple #1
0
 public void SaveData(ISaveService sc)
 {
     sc.SaveInt(this.gameObject, "inventory.count", items.Count);
     for (int i = 0; i< items.Count; i++){
         sc.SaveString(this.gameObject, "inventory.items."+ i +".name", items[i].name);
         sc.SaveInt(this.gameObject, "inventory.items."+ i +".amount", items[i].amount);
     }
 }
Exemple #2
0
 public void SaveData(ISaveService sc)
 {
     sc.SaveString(owner, "pickup.item", item);
     sc.SaveInt(owner, "pickup.quantity", quantity);
 }