This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/NaughtyAttributes/Scripts/Core/DrawConditionAttributes/HideIfAttribute.cs
2020-07-09 11:41:01 -07:00

20 lines
520 B
C#

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