unity-atoms/Packages/Core/Runtime/Events/VoidEvent.cs

19 lines
433 B
C#
Raw Normal View History

2018-10-30 15:05:06 -04:00
using UnityEngine;
2019-10-15 16:37:15 -04:00
using UnityAtoms;
2018-10-30 15:05:06 -04:00
namespace UnityAtoms
{
2019-10-15 16:37:15 -04:00
/// <summary>
/// Event of type `Void`. Inherits from `AtomEvent&lt;Void&gt;`.
/// </summary>
2019-10-14 10:51:54 -04:00
[EditorIcon("atom-icon-cherry")]
[CreateAssetMenu(menuName = "Unity Atoms/Events/Void", fileName = "VoidEvent")]
public sealed class VoidEvent : AtomEvent<Void>
2018-10-30 15:05:06 -04:00
{
public void Raise()
{
Raise(new Void());
}
}
}