示例#1
0
 private void DestroyTool()
 {
     if (TrafficLightTool != null)
     {
         TrafficLightTool.Destroy(TrafficLightTool);
         TrafficLightTool = null;
     }
 }
示例#2
0
        private void DestroyTool()
        {
            if (TrafficLightTool != null)
            {
                ToolsModifierControl.toolController.CurrentTool = ToolsModifierControl.GetTool <DefaultTool>();
                ToolsModifierControl.SetTool <DefaultTool>();

                TrafficLightTool.Destroy(TrafficLightTool);
                TrafficLightTool = null;
            }
        }