evershade/Assets/Data/ScriptableObjects/World/TreeInteractable.cs

39 lines
857 B
C#

using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "TreeInteractable", menuName = "Game Data/Farming/Tree Interactable")]
public class TreeInteractable : Interactable
{
public TreeInteractable()
{
type = InteractableType.Tree;
}
public List<ResourceItem> ContainsItems { get; set; }
public void Initialize()
{
Debug.Log("Rock Initialize");
ContainsItems = new List<ResourceItem>();
}
public override void OnEnter2D(Collider2D collider)
{
Debug.Log("Rock OnEnter2D");
}
public override void OnExit2D(Collider2D collider)
{
Debug.Log("Rock OnExit2D");
}
public override void OnInteract()
{
Debug.Log("Rock OnInteract");
}
public override void Interact()
{
Debug.Log("Rock Interact");
}
}