/// <summary> /// Set the current engine to use when in Engine mode /// Set to null to disable the engine. /// Engines are automatically disabled/enabled when switching /// </summary> /// <param name="engine"></param> public void SetEngine(HexEngine engine) { // Switch engines if (engine != currentEngine) { if (currentEngine != null) { currentEngine.Disable(); } if (engine != null) { engine.Enable(); } } currentEngine = engine; }