示例#1
0
        private void DisableOverlay()
        {
            if (_overlay == null)
            {
                return;
            }

            _overlay.Modes = 0;
            var overlayManager = IoCManager.Resolve <IOverlayManager>();

            overlayManager.RemoveOverlay(_overlay.ID);
            _overlay = null;
        }
示例#2
0
        private void EnableOverlay()
        {
            if (_overlay != null)
            {
                return;
            }

            var overlayManager = IoCManager.Resolve <IOverlayManager>();

            _overlay = new DebugPathfindingOverlay {
                Modes = _modes
            };
            overlayManager.AddOverlay(_overlay);
        }