unity-atoms/Packages/Core/Runtime/Interfaces/IGetOrCreateEvent.cs
Adam Ramberg 7bdb2b7cf2
Trigger initial events for instancers (#220)
* - Trigger initial events for instancers
- Clean up event name for events instantiated at runtime
- Added properties to check if an event is set or not on a variable. This is useful in order to not accidentally create an event at runtime when just checking if it is null or not.
- Added logic to clean up events instantiated at runtime.

* Added an explicit GetOrCreateEvent method
2020-12-26 19:52:37 +01:00

10 lines
221 B
C#

namespace UnityAtoms
{
/// <summary>
/// Interface for getting or creating an event.
/// </summary>
public interface IGetOrCreateEvent
{
E GetOrCreateEvent<E>() where E : AtomEventBase;
}
}