示例#1
0
 public void LoadInventory(BaseInventoryData data)
 {
     base_pieces  = new int[data.base_pieces.Length];
     enemy_groups = new int[data.enemy_groups.Length];
     for (int i = 0; i < base_pieces.Length; i++)
     {
         base_pieces[i] = data.base_pieces[i];
     }
     for (int i = 0; i < enemy_groups.Length; i++)
     {
         enemy_groups[i] = data.enemy_groups[i];
     }
 }
示例#2
0
 public InventoryData(int gold)
 {
     base_inventory_data = BaseInventoryData.empty;
     this.gold           = gold;
 }
示例#3
0
 public InventoryData(Inventory inventory)
 {
     base_inventory_data = inventory.base_inventory.SaveInventory();
     gold = inventory.gold;
 }