Class TransitionFromAttribute
Transition attribute to manage transitions between states for a state machine.
Inheritance
TransitionFromAttribute
Implements
Inherited Members
Namespace: nickmaltbie.StateMachineUnity.Attributes
Assembly: cs.temp.dll.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class TransitionFromAttribute : TransitionAttribute, ITransition<Type>
Constructors
TransitionFromAttribute(Type, Type)
Transition from a given state to another state.
Declaration
public TransitionFromAttribute(Type triggerEvent, Type fromState)
Parameters
Type | Name | Description |
---|---|---|
Type | triggerEvent | Trigger event to cause transition. |
Type | fromState | New state to transition to upon trigger. |