public Log(BaseScope scope, BaseScope otherScope, ScopeDebugger.ScopeEvent scopeEv) { name = scopeEv.type.ToString() + " Scope"; color = Color.white; if (scopeEv.type == ScopeDebugger.ScopeEvent.Type.Switch) { parameters = new string[] { scope.GetType().Name, otherScope.GetType().Name } } ; else { parameters = new string[] { scope.GetType().Name } }; } }
void ScopeDebugger_OnScopeEvent(BaseScope scope, BaseScope otherScope, ScopeDebugger.ScopeEvent scopeEvent) { logs.Add(new Log(scope, otherScope, scopeEvent)); Repaint(); }