interactable

This commit is contained in:
Janis
2023-03-04 15:53:47 +01:00
parent ae0b21f9e9
commit 5f08865a2b
17 changed files with 506 additions and 357 deletions

View File

@@ -0,0 +1,14 @@
// 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);
}
}