using System; using UnityEngine; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] public sealed class MaxValue : ValueModifierPropertyAttribute { public readonly int intValue; public readonly float floatValue; public MaxValue(int value) { intValue = value; floatValue = value; } public MaxValue(float value) { intValue = Mathf.RoundToInt(value); floatValue = value; } } }