public static GameDebugger AttachTo(Game game, IDebugMultiCanvasHost debugMultiCanvasHost) { var debugger = new GameDebugger(game, debugMultiCanvasHost); game.Debuggers.Add(debugger); return(debugger); }
public static void Main(string[] args) { var gameFactory = new GameFactory(); gameFactory.GameCreated += (s, game) => { GameDebugger.AttachToWithSoftwareRendering(game); }; // gameFactory.GameCreated += (s, game) => { GameDebugger.AttachToWithHardwareRendering(game); }; OpenMOBA.Program.Main(gameFactory); }