mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 16:18:24 -05:00
be6a479bc1
* 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
20 lines
464 B
C#
20 lines
464 B
C#
using UnityAtoms;
|
|
namespace UnityAtoms
|
|
{
|
|
/// <summary>
|
|
/// Action of type `Void`. Inherits from `AtomAction<Void>`.
|
|
/// </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();
|
|
}
|
|
}
|
|
}
|