using System; namespace Module.Inspector { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public sealed class DisableMethod : AccessModifierMethodAttribute { public readonly string fieldName; public readonly bool useFieldValue; public readonly object fieldValue; public DisableMethod(string fieldName) { this.fieldName = fieldName; } public DisableMethod(string fieldName, object fieldValue) { this.fieldName = fieldName; this.fieldValue = fieldValue; useFieldValue = true; } } }