public DebugComponent(InputsManager inputManager, GuiManager guiManager, Game game, D3DEngine engine, ByteColor LeftPanelColor, bool withDisplayInfoActivated = false) { this.IsSystemComponent = true; _inputManager = inputManager; _engine = engine; _leftPanelColor = LeftPanelColor; _guiManager = guiManager; _game = game; _displayInfo = ToDispose(new DisplayInfo(_engine, game)); _displayInfo.EnableComponent(); _fps = ToDispose(new GeneralDebugComponent(inputManager)); if (withDisplayInfoActivated) { _fps.EnableComponent(); } _fps.ShowDebugInfo = true; _displayInfo.AddComponants(_fps); this.DrawOrders.UpdateIndex(0, int.MaxValue); this.DrawOrders.AddIndex(_guiManager.DrawOrders.DrawOrdersCollection[0].Order + 2, "Chart"); }