public bool DestroyFSM(FSMBase fsm) { if (fsm == null) { throw new Exception("FSM is invalid."); } return(InternalDestroyFSM(fsm.OwnerType.FullName)); }
public FSMBase[] GetAllFSM() { int index = 0; FSMBase[] fsms = new FSMBase[FSMS.Count]; foreach (KeyValuePair <string, FSMBase> fsm in FSMS) { fsms[index++] = fsm.Value; } return(fsms); }