public FSM(string path, FSMHandle handle) { this.handle = handle; stack = new Stack<State>(); FSMPage page = FSMParser.Get(path, handle.GetType()); //Debug.LogWarning(page); this.name = path; this.initStateName = page.InitStateName; states = new Dictionary<string, State>(); foreach (var entity in page.Paragraphs) { states.Add(entity.Key, new State(entity.Value, this)); } SetState(initStateName, null); }