mirror of
				https://github.com/DerTyp7/harvestdale-unity.git
				synced 2025-10-31 05:27:07 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			290 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			290 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnityEngine;
 | |
| using UnityEngine.Tilemaps;
 | |
| 
 | |
| public class Field : MonoBehaviour
 | |
| {
 | |
|   public Crop crop;
 | |
|   public int daysSincePlanted;
 | |
|   public bool isWatered;
 | |
| 
 | |
|   private void Start()
 | |
|   {
 | |
|     TimeManager.OnDayChanged += AddDay;
 | |
|   }
 | |
|   private void AddDay()
 | |
|   {
 | |
|     daysSincePlanted++;
 | |
|   }
 | |
| } | 
