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

Is it possible to change the registered delegation method to event? #541

Open
zms9110750 opened this issue Sep 20, 2023 · 2 comments
Open

Comments

@zms9110750
Copy link

I hope there is a way to delete registered delegates.

@zms9110750 zms9110750 changed the title Is it possible to change the registered delegation to an event? Is it possible to change the registered delegation method to event? Sep 20, 2023
@HenningNT
Copy link
Contributor

@zms9110750
Copy link
Author

zms9110750 commented Oct 11, 2023

Yes, that's what this event keyword declares.
My player controller will determine the player's status. However, in running and idle mode, playing animations is determined by other classes. Since they are separated, it is possible that the animation needs to unbind the delegation.
In addition, there are two issues.

  • 1 Is it possible to merge asynchronous and synchronous delegates together?
    • 1.1 It is difficult to manage the occurrence of two events in the same role.
    • 1.2 Whenever an asynchronous delegate occurs, I need to use an asynchronous trigger, even if it is a PermitIf that is completely impossible to trigger.
  • 2 Can the asynchronous return value be changed to a ValueTask? It is unlikely that this task will need to be used multiple times.

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

No branches or pull requests

2 participants