using System;
using UnityEditor;

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

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

    public void Destroy()
    {
    }
}