public bool ChangeTool(string toolName) { // Check if the tool exists if(toolList.ContainsKey(toolName)) { Debug.Log("Tool exists, switching to tool " + toolName); currentTool.Deactivate(); currentToolName = toolName; currentTool = toolList[currentToolName] as PointerTool; currentTool.Activate(); return true; } else { Debug.Log(toolName + " does not exist"); return false; } }