mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 21:17:09 +01:00
interactable
This commit is contained in:
14
Assets/Scripts/Field/FieldController.cs
Normal file
14
Assets/Scripts/Field/FieldController.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user