internal bool HasSetElementFSM(Type type, FSMBase fsm) { if (!fsmSetDict.ContainsKey(type)) { return(false); } var fsmPool = fsmSetDict[type]; return(fsmPool.HasFSM(fsm)); }
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); } }
public void AddFSM(FSMBase fsm) { if (!fsmSet.Contains(fsm)) { fsmSet.Add(fsm); } else { throw new ArgumentException(" FSM is exists" + fsm.OwnerType.ToString()); } }
public void DestoryFSM(FSMBase fsm) { fsmSet.Remove(fsm); FsmRefreshHandler -= fsm.OnRefresh; fsm.Shutdown(); }
public bool HasFSM(FSMBase fsm) { return(fsmSet.Contains(fsm)); }
internal bool HasSetElementFSM <T>(FSMBase fsm) where T : class { return(HasSetElementFSM(typeof(T), fsm)); }
public void DestoryFSM(FSMBase fsm) { fsmSet.Remove(fsm); fsm.Shutdown(); }