Example #1
0
        public SubStateMachine AddSubStateMachine(string iD, string machineName, bool isLoop = false,
                                                  StateTransitionType stateTransitionType    = StateTransitionType.Default)
        {
            SubStateMachine subStateMachine = new SubStateMachine(iD, machineName, this, isLoop);

            this.states.Add(iD, subStateMachine);
            this.subMachines.Add(machineName, subStateMachine);
            return(subStateMachine);
        }
 public void RemoveSubStateMachine(SubStateMachine subMachine)
 {
     subMachine.GetParentLayer().RemoveSubStateMachine(subMachine);
 }
Example #3
0
 public void RemoveSubStateMachine(SubStateMachine subMachine)
 {
     RemoveState(subMachine);
     subMachines.Remove(subMachine.GetName());
 }