mirror of
				https://github.com/DerTyp7/harvestdale-unity.git
				synced 2025-10-30 21:17:09 +01:00 
			
		
		
		
	add field functinallity
This commit is contained in:
		| @@ -8,4 +8,5 @@ public class Crop : Item | ||||
| { | ||||
|   public int daysToGrow; | ||||
|   public List<Sprite> sprites = new List<Sprite>(); | ||||
|   public Harvest harvest; | ||||
| } | ||||
							
								
								
									
										9
									
								
								Assets/Scripts/Items/Harvest.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Assets/Scripts/Items/Harvest.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| using UnityEngine; | ||||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| [CreateAssetMenu(fileName = "Harvest", menuName = "Harvestdale/Items/Harvest", order = 0)] | ||||
| public class Harvest : Item | ||||
| { | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Items/Harvest.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Items/Harvest.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 01eac50f7d5dd124e94a48f3e4428435 | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -1,7 +1,5 @@ | ||||
| using UnityEngine; | ||||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| [CreateAssetMenu(fileName = "Item", menuName = "Harvestdale/Items/Item", order = 0)] | ||||
| public class Item : ScriptableObject | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Janis
					Janis