using System;
using UnityEditor;

[TypeDrawer]
public class FloatTypeDrawer : ITypeDrawer
{
    public bool HandlesType(Type type, object value)
    {
        return type == typeof(float);
    }

    public object DrawAndGetNewValue(Type memberType, string memberName, object value, object target)
    {
        return EditorGUILayout.FloatField(memberName, (float)value);
    }

    public void Destroy()
    {
    }
}