using System; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class ComponentOrderAttribute : Attribute { public int order; public string methodOverride; public ComponentOrderAttribute(int order) { this.order = order; } public ComponentOrderAttribute(string methodOverride, int order) { this.order = order; this.methodOverride = methodOverride; } }