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

12 lines
293 B
C#
Raw Normal View History

2021-01-25 20:44:17 +01:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ktyl.Util
{
[CreateAssetMenu(menuName = "ktyl/Util/Float")]
public class SerialFloat : SerialVar<float>
{
2021-04-13 16:33:59 +02:00
public bool AsBool => Mathf.Abs( Value ) <= float.Epsilon;
2021-01-25 20:44:17 +01:00
}
}