unity-atoms/Packages/Core/Runtime/Actions/VoidAction.cs

24 lines
552 B
C#
Raw Normal View History

2018-10-30 15:05:06 -04:00
namespace UnityAtoms
{
2019-10-15 14:44:25 -04:00
/// <summary>
/// Action of type Void. Inherits from `AtomAction&lt;Void&gt;`.
/// </summary>
2019-10-14 10:51:54 -04:00
[EditorIcon("atom-icon-purple")]
public abstract class VoidAction : AtomAction<Void>
2018-10-30 15:05:06 -04:00
{
2019-10-15 14:44:25 -04:00
/// <summary>
/// Do the Action.
/// </summary>
/// <param name="_">Dummy Void parameter.</param>
2018-10-30 15:05:06 -04:00
public override void Do(Void _)
{
Do();
}
2019-10-15 14:44:25 -04:00
/// <summary>
/// Do the Action.
/// </summary>
2018-10-30 15:05:06 -04:00
public abstract void Do();
}
}