public FFStateMachineTransition(string transitionName, FFStateMachineState from, FFStateMachineState to, FFStateMachineStateAction action)
 {
     this.name = transitionName;
     this.from = from;
     this.to = to;
     this.action = action;
 }
 //
 public void add(FFStateMachineState[] statesList)
 {
     foreach (FFStateMachineState state in statesList)
     {
         this.add(state);
     }
 }
        public void add(FFStateMachineState newState)
        {
            if (!exists(newState.name))
            {
                FFStateMachineDebug.Log(FFStateMachineDebugMessageType.Info, this.name, newState.name + "-added", debugMode);
                states.Add(newState);
            }
            else
            {
                FFStateMachineDebug.Log(FFStateMachineDebugMessageType.Info, this.name,"add-estado existente/"+ newState.name + "--omitido", debugMode);
            }

        }
 public void execute(FFStateMachineState from, FFStateMachineState to)
 {
     action(this, from, to);
 }