public override void Initialize() { this.isToolWindow = true; SkillLogger.instance = this; this.InitWindowTitle(); base.set_minSize(new Vector2(200f, 200f)); DebugFlow.SyncFsmLog(SkillEditor.SelectedFsm); }
public static void Start(Skill fsm) { DebugFlow.UpdateTime(); DebugFlow.Active = true; DebugFlow.SyncFsmLog(fsm); DebugFlow.StartedDebugFrame = Time.get_frameCount(); DebugFlow.variablesCache.Clear(); using (List <Skill> .Enumerator enumerator = SkillEditor.FsmList.GetEnumerator()) { while (enumerator.MoveNext()) { Skill current = enumerator.get_Current(); if (current.EnableDebugFlow) { DebugFlow.variablesCache.Add(current, new SkillVariables(current.get_Variables())); } } } DebugFlow.globalVariablesCache = new SkillVariables(SkillVariables.get_GlobalVariables()); }