public FFStateMachineTransition(string transitionName, FFStateMachineState from, FFStateMachineState to, FFStateMachineStateAction action)
 {
     this.name = transitionName;
     this.from = from;
     this.to = to;
     this.action = action;
 }
 public void addTransition(string transitionName, string fromName, string toName, FFStateMachineStateAction action)
 {
     /*
     if (!exists(fromName))
     {
         throw new System.Exception("[NinjaStateMachine][addTransition][state no encontrado -> " + fromName + "]");
     }
     if (!exists(toName))
     {
         throw new System.Exception("[NinjaStateMachine][addTransition][state no encontrado -> " + toName + "]");
     }
     //*/
     transitions.Add(new FFStateMachineTransition(transitionName, get(fromName), get(toName), action));
 }