mirror of
				https://github.com/DerTyp7/example-top-down-unity.git
				synced 2025-10-31 13:27:06 +01:00 
			
		
		
		
	rework
This commit is contained in:
		| @@ -18,15 +18,12 @@ public class Slot | ||||
|     /// </summary> | ||||
|  | ||||
|     Item item; | ||||
|     int maxItems = 1; | ||||
|     int count = 0; | ||||
|     public Item ItemType { get => item; set => item = value; } | ||||
|     public int Count { get => count; set => count = value; } | ||||
|     public int MaxItems { get => maxItems; set => maxItems = value; } | ||||
|     public Slot(int maxItems = 1) | ||||
|     public Slot() | ||||
|     { | ||||
|         item = null; | ||||
|         this.maxItems = maxItems; | ||||
|     } | ||||
|     public void addItem(int count = 1) | ||||
|     { | ||||
| @@ -45,7 +42,7 @@ public class Slot | ||||
|     } | ||||
|     public Slot copy()  | ||||
|     { | ||||
|         Slot slot = new Slot(maxItems); | ||||
|         Slot slot = new Slot(); | ||||
|         slot.count = count; | ||||
|         slot.ItemType = ItemType; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 j.mei7
					j.mei7