mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2025-10-30 04:47:09 +01:00
sprite order & interactable
This commit is contained in:
@@ -4,7 +4,13 @@ using UnityEngine;
|
||||
|
||||
public class TreeInteraction : Interactable
|
||||
{
|
||||
public override string GetDescription() => "Baum muss schreien";
|
||||
public override string GetDescription()
|
||||
{
|
||||
if (isInRange())
|
||||
return "Baum muss schreien";
|
||||
else
|
||||
return "Tree is not in range";
|
||||
}
|
||||
public override void Interact()
|
||||
{
|
||||
if (isInRange())
|
||||
|
||||
Reference in New Issue
Block a user