using UnityEngine; namespace UnityAtoms { [CreateAssetMenu(menuName = "Unity Atoms/Float/Variable", fileName = "FloatVariable", order = CreateAssetMenuUtils.Order.VARIABLE)] public class FloatVariable : EquatableScriptableObjectVariable, IWithApplyChange { public bool ApplyChange(float amount) { return SetValue(Value + amount); } public bool ApplyChange(EquatableScriptableObjectVariable amount) { return SetValue(Value + amount.Value); } } }