Skip to content

Commit

Permalink
Add appropriate constructor to TFButtonReceiver
Browse files Browse the repository at this point in the history
Enables use of Interactable.AddReceiver<T>()
  • Loading branch information
steven-lay committed Jun 12, 2021
1 parent 8dda105 commit c1c47ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Scripts/DefaultPlugins/TFButtonReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public class TFButtonReceiver : ReceiverBase

private State lastState;

public TFButtonReceiver() : this(new UnityEvent())
{
}

public TFButtonReceiver(UnityEvent ev) : base(ev, "CustomEvent")
{
}
Expand Down

0 comments on commit c1c47ed

Please sign in to comment.