35 lines
743 B
C#
35 lines
743 B
C#
using System.Collections.Generic;
|
|
using Types.Items;
|
|
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 Interact()
|
|
{
|
|
Debug.Log("Rock Interact");
|
|
}
|
|
|
|
public void Initialize()
|
|
{
|
|
Debug.Log("Rock Initialize");
|
|
ContainsItems = new List<ResourceItem>();
|
|
}
|
|
} |