mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
The EventReference isn't initialized as null anymore, but require a default constructor as generic constraint.
This commit is contained in:
parent
77faff6637
commit
53b350e51a
@ -13,7 +13,7 @@ namespace UnityAtoms
|
||||
[EditorIcon("atom-icon-orange")]
|
||||
public abstract class AtomEventReferenceListener<T, E, ER, UER> : AtomBaseListener<T, E, UER>, IAtomListener<T>
|
||||
where E : AtomEvent<T>
|
||||
where ER : IGetEvent, ISetEvent
|
||||
where ER : IGetEvent, ISetEvent, new()
|
||||
where UER : UnityEvent<T>
|
||||
{
|
||||
/// <summary>
|
||||
@ -26,6 +26,6 @@ namespace UnityAtoms
|
||||
/// The Event Reference that we are listening to.
|
||||
/// </summary>
|
||||
[SerializeField]
|
||||
private ER _eventReference = default(ER);
|
||||
private ER _eventReference = new ER();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user