dotnet-state-machine / stateless

A simple library for creating state machines in C# code
Other
5.62k stars 767 forks source link

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

Open zms9110750 opened 1 year ago

zms9110750 commented 1 year ago

I hope there is a way to delete registered delegates.

HenningNT commented 1 year ago

Like this?

https://stackoverflow.com/questions/15210553/reassign-event-handler-at-runtime

zms9110750 commented 1 year ago

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.