Animals can now be bought in AnimalShop
if bought they will be placed somewhere random on the map
This commit is contained in:
parent
acd602c85a
commit
441ffb900a
34 changed files with 2387 additions and 265 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using Shop;
|
||||
using UnityEngine;
|
||||
|
||||
public class Inventory : ElementStorage<Item> {
|
||||
|
|
@ -50,7 +51,7 @@ public class Inventory : ElementStorage<Item> {
|
|||
*/
|
||||
public void SellItem(Item item, int amount) {
|
||||
PlayerController.instance.ChangeMoney(item.SellPrice);
|
||||
Shop.instance.AddElement(item, amount);
|
||||
ItemShop.instance.AddElement(item, amount);
|
||||
RemoveElement(item, amount);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue