Пример #1
0
 public void Deactivate()
 {
     if (tool != null)
     {
         tool.OnToolDeselect();
     }
     targetCircle.gameObject.SetActive(false);
 }
Пример #2
0
 public void SetTool(int idx)
 {
     if (activeToolUI != null)
     {
         activeToolUI.SetActive(false);
     }
     if (activeTool != null)
     {
         activeTool.OnToolDeselect();
     }
     activeTool = tools[idx];
     activeTool.OnToolSelect(selectedObject);
     activeTool.OnBrushRadiusChange(toolRadius);
     if (toolUI[idx] != null)
     {
         activeToolUI = toolUI[idx];
         activeToolUI.SetActive(true);
     }
     selectedToolText.text = "SELECTED:\n" + activeTool.toolName;
 }