Пример #1
0
 void OnExit()
 {
     if (mCurrentTool != null)
     {
         mCurrentTool.Hide();
         mCurrentTool = null;
     }
 }
Пример #2
0
        void OnToolVisibleChange(ToolBase _tool, bool _isVisible)
        {
            if (_isVisible)
            {
                if (mCurrentTool != null)
                {
                    mCurrentTool.Hide();
                }

                mCurrentTool = _tool;
            }
            else if (mCurrentTool == _tool)
            {
                mCurrentTool = null;
            }
        }