revival/game/Assets/Scripts/Util/SerialFloat.cs

12 lines
293 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ktyl.Util
{
[CreateAssetMenu(menuName = "ktyl/Util/Float")]
public class SerialFloat : SerialVar<float>
{
public bool AsBool => Mathf.Abs( Value ) <= float.Epsilon;
}
}