can interact if player has tool selected (in hand))

This commit is contained in:
j.mei7
2022-02-18 20:25:35 +01:00
parent 73669eaa3f
commit 3ff90d47c2
30 changed files with 505 additions and 78 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
public class TreeInteraction : Harvestable
{
private void Start()
{
toolType = ToolType.AXE;
}
public override string GetDescription()
{
if (isInRange())
return "Baum muss weg";
else
return "Tree is not in range";
}
public override void Interact()
{
Debug.Log("Harvest BAUM");
}
}