First Commit
This commit is contained in:
23
Assets/Attributes/Button.cs
Normal file
23
Assets/Attributes/Button.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user