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

49 lines
1.0 KiB
C#

using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "RockInteractable", menuName = "Game Data/Farming/Rock Interactable")]
public class RockInteractable : Interactable
{
public enum RockSize
{
Small,
Medium,
Large
}
public RockSize rockSize;
// automatically set the type when creating new instance
public RockInteractable()
{
type = InteractableType.Rock;
}
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");
}
}