예제 #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;
            }
        }