mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
fix compilation error due to method reference
This commit is contained in:
parent
eb72c90de9
commit
3840da479b
@ -117,9 +117,21 @@ namespace UnityAtoms
|
||||
/// <summary>
|
||||
/// Register handler to be called when the Event triggers.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Replays the event buffer to the handler.
|
||||
/// </remarks>
|
||||
/// <param name="action">The handler.</param>
|
||||
/// <param name="replayEventsBuffer">If this replays the events buffer to the new listener. Defaults to true.</param>
|
||||
public void Register(Action<T> action, bool replayEventsBuffer = true)
|
||||
public void Register(Action<T> action)
|
||||
{
|
||||
Register(action, replayEventsBuffer: true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register handler to be called when the Event triggers.
|
||||
/// </summary>
|
||||
/// <param name="action">The handler.</param>
|
||||
/// <param name="replayEventsBuffer">If this replays the events buffer to the handler.</param>
|
||||
public void Register(Action<T> action, bool replayEventsBuffer)
|
||||
{
|
||||
_onEvent += action;
|
||||
if (replayEventsBuffer)
|
||||
|
Loading…
Reference in New Issue
Block a user