This commit is contained in:
j.mei7
2022-02-22 21:31:04 +01:00
parent 7d055be8d1
commit f5f3154c95
12 changed files with 231 additions and 134 deletions

View File

@@ -1,7 +1,11 @@
using UnityEngine;
public class TreeInteraction : Harvestable
{
[SerializeField]
Item dropItem;
public override string GetDescription()
{
@@ -12,6 +16,12 @@ public class TreeInteraction : Harvestable
}
public override void Interact()
{
Debug.Log("Harvest BAUM");
if (!isHarvested)
{
Debug.Log("Harvest BAUM");
Inventory.PlayerInstance.Add(dropItem, Random.Range(1, 10));
isHarvested = true;
}
}
}