using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Collider))] [RequireComponent(typeof(Rigidbody))] public abstract class CarryableItem : MonoBehaviour { [SerializeField] private string itemName; public string ItemName { get { return this.itemName; } } [SerializeField] private int itemSize = 1; public int ItemSize { get { return this.itemSize; } } }