DisableIf.cs 339 B

1234567891011121314151617
  1. using System;
  2. namespace Leap.Unity.Attributes
  3. {
  4. public class DisableIf : CombinablePropertyAttribute, IPropertyDisabler
  5. {
  6. public DisableIf(string propertyName, bool equalTo = true)
  7. {
  8. this.propertyName = propertyName;
  9. this.equalTo = equalTo;
  10. }
  11. public readonly string propertyName;
  12. public readonly bool equalTo;
  13. }
  14. }