void OnActiveToolChanging() { if (m_Tool != null && ToolManager.IsActiveTool(m_Tool)) { LeaveTool(); } }
void ActionPerformed(MenuAction newActionPerformed) { if (ToolManager.IsActiveTool(m_Tool) && newActionPerformed.GetType() != this.GetType()) { LeaveTool(); } }