Files
example-top-down-unity/Assets/Scripts/TreeInteraction.cs
2022-02-14 19:17:10 +01:00

17 lines
433 B
C#

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