error CS1502: The best overloaded method match for `UnityEngine.Events.UnityEvent.AddListener(UnityEngine.Events.UnityAction)' has some invalid arguments

If you want to use AddListener and void function, you should not write like

```

button.onClick.AddListener (someFunction(id));

```

but

```

button.onClick.AddListener (() => someFunction(id));

```