void OnExit() { if (mCurrentTool != null) { mCurrentTool.Hide(); mCurrentTool = null; } }
void OnToolVisibleChange(ToolBase _tool, bool _isVisible) { if (_isVisible) { if (mCurrentTool != null) { mCurrentTool.Hide(); } mCurrentTool = _tool; } else if (mCurrentTool == _tool) { mCurrentTool = null; } }