14 lines
424 B
C#
14 lines
424 B
C#
using Intrepid.Utilities;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace Temporary
|
|
{
|
|
public class FloorDetection : MonoBehaviour
|
|
{
|
|
[GroupConfigurations, SerializeField] private float offset;
|
|
[GroupInjections, SerializeField] private Transform heightReference;
|
|
|
|
[GroupDebug, ShowInInspector, ReadOnly] public float CurrentFloorHeight => heightReference.position.y - offset;
|
|
}
|
|
} |