23 lines
456 B
C#
23 lines
456 B
C#
using System;
|
|
|
|
namespace Golems.Attributes
|
|
{
|
|
/// <summary>
|
|
/// Adds an Inspector Button which Invokes
|
|
/// decorated methods
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
|
|
public class Button : Attribute
|
|
{
|
|
public string Ident = "";
|
|
|
|
public Button()
|
|
{
|
|
}
|
|
|
|
public Button(string ident)
|
|
{
|
|
Ident = ident;
|
|
}
|
|
}
|
|
} |