Ejemplo n.º 1
0
        public bool DestroyFSM(FSMBase fsm)
        {
            if (fsm == null)
            {
                throw new Exception("FSM is invalid.");
            }

            return(InternalDestroyFSM(fsm.OwnerType.FullName));
        }
Ejemplo n.º 2
0
        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);
        }