using System;
namespace CustomAttributes
{
///
/// Нажатие на кнопку в редакторе
///
[AttributeUsage(AttributeTargets.Method)]
public class EditorButtonAttribute : Attribute
{
///
/// Button text
///
public string name;
///
/// Add Button to Inspector
///
/// Button text
public EditorButtonAttribute(string name)
{
this.name = name;
}
}
}