Why can a compiler accept an anonymous function in an argument where it asks a delegate to be passed (like in this line of code: button.onClick. AddListener(() => LearnAbility (abilities [index]))? - Quora
![c# - Is it possible to add a onClick() Event action(in GameObject dropdown) without adding new script in Unity? - Stack Overflow c# - Is it possible to add a onClick() Event action(in GameObject dropdown) without adding new script in Unity? - Stack Overflow](https://i.stack.imgur.com/HRgFg.png)
c# - Is it possible to add a onClick() Event action(in GameObject dropdown) without adding new script in Unity? - Stack Overflow
![How to use Event Trigger to control your character with Button and how to move it by holding down a button? – GEPlanet of America How to use Event Trigger to control your character with Button and how to move it by holding down a button? – GEPlanet of America](https://ge-planet.com/en/wp-content/uploads/sites/3/2020/10/unity-masterbrand-black.png)