using UnityEngine; namespace UnityAtoms { [UseIcon("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); } } }