void Start() { canvas.CanvasStart(400, 400, history); clearButton.onClick.AddListener(() => { actionPerformed(clearButton); }); redButton.onClick.AddListener(() => { actionPerformed(redButton); }); greenButton.onClick.AddListener(() => { actionPerformed(greenButton); }); blueButton.onClick.AddListener(() => { actionPerformed(blueButton); }); }
void Start() { canvas.CanvasStart(400, 400, history); clearButton.onClick.AddListener(() => { actionPerformed(); }); }