Files
example-top-down-unity/Assets/Scripts/TreeInteraction.cs
2022-02-15 10:33:57 +01:00

21 lines
543 B
C#

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