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()); } } }
public void ToolSelected(int num) { GameControllerScript.PlaySound(4); ChangedTool.toolNum = num; ChangedTool.UpdateToolImage(); }
//set up starter tool (line) void Start() { tool = gameObject; script = this; UpdateToolImage(); }