Files
example-top-down-unity/Assets/Scripts/TreeInteraction.cs
2022-02-15 16:02:22 +01:00

19 lines
394 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TreeInteraction : Harvestable
{
public override string GetDescription()
{
if (isInRange())
return "Baum muss schreien";
else
return "Tree is not in range";
}
public override void Interact()
{
Debug.Log("Harvest BAUM");
}
}