mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 04:57:09 +01:00
init
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Tilemaps;
|
||||
|
||||
public class Field : MonoBehaviour
|
||||
{
|
||||
public Crop crop;
|
||||
@@ -7,11 +9,10 @@ public class Field : MonoBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
TimeManager.OnMinuteChanged += logTime;
|
||||
TimeManager.OnHourChanged += logTime;
|
||||
TimeManager.OnDayChanged += AddDay;
|
||||
}
|
||||
public void logTime()
|
||||
private void AddDay()
|
||||
{
|
||||
Debug.Log($"{TimeManager.Hour:00}:{TimeManager.Minute:00}");
|
||||
daysSincePlanted++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user