Example #1
0
 private void PickTool(PaintButton tool)
 {
     if (tool != currentButton)
     {
         currentButton.Stroke = Color.Black;
         tool.Stroke          = Color.Red;
         currentButton        = tool;
         if (ChangedTool != null)
         {
             ChangedTool.Invoke(this, new EventArgs());
         }
     }
 }
Example #2
0
 public void ToolSelected(int num)
 {
     GameControllerScript.PlaySound(4);
     ChangedTool.toolNum = num;
     ChangedTool.UpdateToolImage();
 }
Example #3
0
 //set up starter tool (line)
 void Start()
 {
     tool   = gameObject;
     script = this;
     UpdateToolImage();
 }