Unity multiple button on click

129733-untitled.png

Hey guys! I’m really new and could use some help.

I created 3 buttons, and i’d like to give each button different task when it’s pressed through 1 script.
How could i control this in C#?

Simply register a click listener on each button with a method reference (delegate) as a parameter.
ButtonOne.onClick.AddListener(TaskOnClick);