Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/event member #18

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Dev/event member #18

wants to merge 10 commits into from

Conversation

NicholasPerell
Copy link
Member

On method added to subscribe/unsubscribe to the event member of a class object.

Comment on lines 85 to 86
public void On(InputActionReference inputActionReference, Action onPerformed = null, Action onStarted = null, Action onCanceled = null)
=> On(inputActionReference, _ => onPerformed?.Invoke(), _ => onStarted?.Invoke(), _ => onCanceled?.Invoke());
public void OnInputAction(InputActionReference inputActionReference, Action onPerformed = null, Action onStarted = null, Action onCanceled = null)
=> OnInputAction(inputActionReference, _ => onPerformed?.Invoke(), _ => onStarted?.Invoke(), _ => onCanceled?.Invoke());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to make a dup and mark obsolete as to not break existing usages.

Copy link
Member

@StephenHodgson StephenHodgson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

breaking changes could be mitigated with obsolete overloads

@NicholasPerell NicholasPerell marked this pull request as draft January 31, 2025 19:41
@NicholasPerell NicholasPerell marked this pull request as ready for review January 31, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants