mabra
unread,Jun 7, 2013, 7:52:12 PM6/7/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dotnet-state-ma...@googlegroups.com
Hi All !
I see the pattern, but not right. If I see this long expression, I cannot understand it.
If I see this:
public void OnTransitioned(System.Action<StateMachine<TState,TTrigger>.Transition> onTransitionAction)
and this:
public Transition(TState source, TState destination, TTrigger trigger)
I cannot bring this together. A simple eventhandler [ with += ops] would be much simpler.
I wrote a method:
private void OnChange(State state1, State state2, Trigger tr)
and assign it to the stateengine this way:
this.sm.OnTransitioned(this.OnChange);
but this does not work. I am getting errors, most are this ones:
cannot convert from 'method group' to
'System.Action<Stateless.StateMachine<AnimationStateMachine.AnimationState,AnimationStateMachine.AnimationTrigger>.Transition>'
Any simple example, at best without lambda expressions, would be of great help to me.
Thanks anyway and
best regards,
++mabra