Files
harvestdale-unity/Assets/Scripts/Field/FieldController.cs
2023-03-04 15:53:47 +01:00

14 lines
294 B
C#

// Interactable object which lets the player plant & harvest a seed
using UnityEngine;
public class FieldController : Interactable
{
public Field field;
public Crop testCrop;
public override void OnInteract()
{
Debug.Log("Interacting with field");
field.Plant(testCrop);
}
}