/// <summary> /// Delete the specific transition in the state /// </summary> /// <param name="fsmStateName">The state name</param> /// <param name="fsmTransition">The specific transition</param> public void DeleteFSMStateToAnotherFSMStateTransition(string fsmStateName, FSMTransition fsmTransition) { //convert the state name to hash value,to improve performance string fsmStateNameHash = HashTool.StringToHash(fsmStateName); FSMState fsmState = null; bool fsmStateExist = m_FSMStateDic.TryGetValue(fsmStateNameHash, out fsmState); if (fsmStateExist == true) { fsmState.DeleteTransition(fsmTransition); } else { Debug.LogErrorFormat("The fsmStateName:{0} is not exist", fsmStateName); } }