Example #1
0
    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();
    }
Example #2
0
 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");
     }
 }