protected void Awake() { new XmlDocument().CreateComment("Test if System.XML is available (REPL fails with no message without it)"); Instance = this; Inspector = new Inspector.Inspector(targetTransform => TreeViewer.SelectAndShowObject(targetTransform)); TreeViewer = new ObjectTreeViewer(items => { Inspector.InspectorClear(); foreach (var stackEntry in items) { Inspector.InspectorPush(stackEntry); } }); Repl = new ReplWindow(); }
protected void Awake() { DnSpyPath = new ConfigWrapper <string>(nameof(DnSpyPath), this); DnSpyPath.SettingChanged += (sender, args) => DnSpyHelper.DnSpyPath = DnSpyPath.Value; DnSpyHelper.DnSpyPath = DnSpyPath.Value; Inspector = new Inspector.Inspector(targetTransform => TreeViewer.SelectAndShowObject(targetTransform)); TreeViewer = new ObjectTreeViewer(items => { Inspector.InspectorClear(); foreach (var stackEntry in items) { Inspector.InspectorPush(stackEntry); } }); DnSpyPath = new ConfigWrapper <string>(nameof(DnSpyPath), this); DnSpyPath.SettingChanged += (sender, args) => DnSpyHelper.DnSpyPath = DnSpyPath.Value; DnSpyHelper.DnSpyPath = DnSpyPath.Value; }