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