you can now undo a purchase after buying an item from the shop
This commit is contained in:
parent
efc7a3deaf
commit
64b25a2029
12 changed files with 359 additions and 56 deletions
|
|
@ -9,6 +9,7 @@ public class Item : ScriptableObject, IComparable<Item> {
|
|||
public Sprite selectedSprite;
|
||||
public Sprite defaultSprite;
|
||||
public int cost;
|
||||
public int SellPrice => Convert.ToInt32(cost * 0.8);
|
||||
|
||||
public Item(string displayName, string description, int id) {
|
||||
this.displayName = displayName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue