Exemplo n.º 1
0
 public void AddTransition(Transition transition)
 {
     transition.State = this;
     if (transition.Condition != null)
     {
         transition.Condition.State = this;
     }
     Transitions.AddLast(transition);
 }
Exemplo n.º 2
0
 public void RemoveTransition(Transition transition)
 {
     transition.State = null;
     if (Transitions.Remove(transition))
     {
         transition.Condition.State = null;
     }
 }