mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-29 20:52:10 +01:00
first commit
This commit is contained in:
17
Assets/Scripts/Field.cs
Normal file
17
Assets/Scripts/Field.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
public class Field : MonoBehaviour
|
||||
{
|
||||
public Crop crop;
|
||||
public int daysSincePlanted;
|
||||
public bool isWatered;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
TimeManager.OnMinuteChanged += logTime;
|
||||
TimeManager.OnHourChanged += logTime;
|
||||
}
|
||||
public void logTime()
|
||||
{
|
||||
Debug.Log($"{TimeManager.Hour:00}:{TimeManager.Minute:00}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user