private void DestroyTool() { if (TrafficLightTool != null) { TrafficLightTool.Destroy(TrafficLightTool); TrafficLightTool = null; } }
private void DestroyTool() { if (TrafficLightTool != null) { ToolsModifierControl.toolController.CurrentTool = ToolsModifierControl.GetTool <DefaultTool>(); ToolsModifierControl.SetTool <DefaultTool>(); TrafficLightTool.Destroy(TrafficLightTool); TrafficLightTool = null; } }