using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;

namespace Intrepid.Gameplay.Flooring
{
    public class FloorDetection : MonoBehaviour
    {
        [GroupConfigurations, SerializeField] private float offset;
        [GroupInjections, SerializeField] private Transform heightReference;

        [GroupDebug, ShowInInspector, ReadOnly] public float CurrentFloorHeight => heightReference.position.y - offset;
    }
}