private void DisableOverlay() { if (_overlay == null) { return; } _overlay.Modes = 0; var overlayManager = IoCManager.Resolve <IOverlayManager>(); overlayManager.RemoveOverlay(_overlay.ID); _overlay = null; }
private void EnableOverlay() { if (_overlay != null) { return; } var overlayManager = IoCManager.Resolve <IOverlayManager>(); _overlay = new DebugPathfindingOverlay { Modes = _modes }; overlayManager.AddOverlay(_overlay); }