public Planet(Vector2 position, bool startingLocation, InventoryItemsDistributor distributor) { Position = position; IsVisited = startingLocation; inventoryItemsDistributor = distributor; InventoryItemsPurchasable = new List <KeyValuePair <InventoryItem, ItemType> >(); InventoryItemsSellable = new List <KeyValuePair <InventoryItem, ItemType> >(); StockItemsPurchasable(); StockItemsSellable(); }
public void Start() { if (Instance == null) { Instance = this; } else { Destroy(this.gameObject); } if (inventoryCollectionTypes.Count != inventoryCollections.Count) { Debug.LogError("InventoryItemsDistributor item count mismatch between inventoryCollections/inventoryCollectionTypes"); } }