unity-atoms/Packages/Core/Runtime/Actions/VoidAction.cs
IceTrooper be6a479bc1 #84 parameterless atom listener (#86)
* added base class for AtomAction; modified VoidAction; added Register/UnregisterListener to non-generic AtomEvent; added parameterless AtomListener; small polishing

* removed EditorIcon from AtomAction; fixed misspelled word in AtomEvent
2019-11-26 20:12:54 +01:00

20 lines
464 B
C#

using UnityAtoms;
namespace UnityAtoms
{
/// <summary>
/// Action of type `Void`. Inherits from `AtomAction&lt;Void&gt;`.
/// </summary>
[EditorIcon("atom-icon-purple")]
public abstract class VoidAction : AtomAction<Void>
{
/// <summary>
/// Do the Action.
/// </summary>
/// <param name="_">Dummy Void parameter.</param>
public override void Do(Void _)
{
Do();
}
}
}