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

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