public FSMTranslation(string fromState, string name, string toState, FSMCallFunction callFunc) { this.fromState = fromState; this.name = name; this.toState = toState; this.OnTranslationCallback = callFunc; }
/// <summary> /// 添加转换条件 /// </summary> /// <param name="fromState"></param> /// <param name="name"></param> /// <param name="toState"></param> /// <param name="callFunc"></param> public void AddTranslation(string fromState, string name, string toState, FSMCallFunction callFunc) { mStateDict[fromState].TranslationDict[name] = new FSMTranslation(fromState, name, toState, callFunc); }