コード例 #1
0
 public FFStateMachineTransition(string transitionName, FFStateMachineState from, FFStateMachineState to, FFStateMachineStateAction action)
 {
     this.name = transitionName;
     this.from = from;
     this.to = to;
     this.action = action;
 }
コード例 #2
0
 //
 public void add(FFStateMachineState[] statesList)
 {
     foreach (FFStateMachineState state in statesList)
     {
         this.add(state);
     }
 }
コード例 #3
0
        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);
            }

        }
コード例 #4
0
 public void execute(FFStateMachineState from, FFStateMachineState to)
 {
     action(this, from, to);
 }