mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-29 20:52:10 +01:00
14 lines
294 B
C#
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);
|
|
}
|
|
} |