pixelgon/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/DisableIfAttribute.cs
2020-06-05 11:54:36 -07:00

20 lines
531 B
C#

using System;
namespace NaughtyAttributes
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class DisableIfAttribute : EnableIfAttribute
{
public DisableIfAttribute(string condition)
: base(condition)
{
Reversed = true;
}
public DisableIfAttribute(ConditionOperator conditionOperator, params string[] conditions)
: base(conditionOperator, conditions)
{
Reversed = true;
}
}
}