public ButtonAttribute(string methodName, string label = null, ButtonActivityType type = ButtonActivityType.Everything) { MethodName = methodName; Label = label; Type = type; }
private bool IsClickable(ButtonActivityType activityType) { switch (activityType) { case ButtonActivityType.Everything: return(true); case ButtonActivityType.Nothing: return(false); case ButtonActivityType.OnEditMode: return(!Application.isPlaying); case ButtonActivityType.OnPlayMode: return(Application.isPlaying); } return(true); }
public InstanceButtonAttribute(Type instanceType, string methodName, string label = null, ButtonActivityType type = ButtonActivityType.Everything) : base(methodName, label, type) { InstanceType = instanceType; }
public BroadcastButtonAttribute(string methodName, string label = null, ButtonActivityType type = ButtonActivityType.Everything) : base(methodName, label, type) { }
public EditorButtonAttribute(string methodName, string extraLabel = null, ButtonActivityType activityType = ButtonActivityType.Everything) { MethodName = methodName; ExtraLabel = extraLabel; ActivityType = activityType; }