mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-29 20:52:10 +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++;
|
|
}
|
|
} |