using UnityEngine; namespace UnityAtoms { /// /// Variable of type `float`. Inherits from `EquatableAtomVariable<float, FloatEvent, FloatFloatEvent>`. /// [EditorIcon("atom-icon-lush")] [CreateAssetMenu(menuName = "Unity Atoms/Variables/Float", fileName = "FloatVariable")] public sealed class FloatVariable : EquatableAtomVariable, IWithApplyChange { public bool ApplyChange(float amount) { return SetValue(Value + amount); } public bool ApplyChange(EquatableAtomVariable amount) { return SetValue(Value + amount.Value); } } }