Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/RootMotion/ShowRangeIfAttribute.cs
2026-03-04 09:37:33 +08:00

20 lines
588 B
C#

using System;
namespace RootMotion
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
public class ShowRangeIfAttribute : ShowIfAttribute
{
public float min { get; private set; }
public float max { get; private set; }
public ShowRangeIfAttribute(float min, float max, string propertyName, object propertyValue = null, object otherPropertyValue = null, bool indent = false, ShowIfMode mode = ShowIfMode.Hidden)
: base(propertyName, propertyValue, otherPropertyValue, indent, mode)
{
this.min = min;
this.max = max;
}
}
}