Пример #1
0
		public void Init(Dictionary<string, FSM> fsms)
		{
			if (!fsms.ContainsKey(name))
				throw new Exception("Unknown FSM: " + name);

			fsm = fsms[name];
			fsm.Init(fsms);
		}
Пример #2
0
		public FSMController(FSM fsm, Context context, GetAutoRuleByNameFunc getAutoRuleByName)
		{
			this.fsm = fsm;
			this.context = context;
			this.getAutoRuleByName = getAutoRuleByName;
		}