Example #1
0
        internal void DestoryFSMSet(Type type)
        {
            FSMBase fsm = null;

            if (fsmIndividualDict.TryGetValue(type, out fsm))
            {
                fsm.Shutdown();
                fsmIndividualDict.Remove(type);
            }
        }
        public void DestoryIndividualFSM(Type type)
        {
            FSMBase fsm = null;

            if (fsmIndividualDict.TryGetValue(type, out fsm))
            {
                fsm.Shutdown();
                fsmIndividualDict.TryRemove(type, out _);
            }
        }
        public void DestoryFSM(Type type)
        {
            FSMBase fsm = null;

            if (fsmDict.TryGetValue(type, out fsm))
            {
                fsm.Shutdown();
                fsmDict.Remove(type);
            }
        }
Example #4
0
 public void DestoryFSM(FSMBase fsm)
 {
     fsmSet.Remove(fsm);
     FsmRefreshHandler -= fsm.OnRefresh;
     fsm.Shutdown();
 }
Example #5
0
 public void DestoryFSM(FSMBase fsm)
 {
     fsmSet.Remove(fsm);
     fsm.Shutdown();
 }