Assign Function To Button Event

Hi, all!

I have a System.Action so I can have a randomly ordered array of set functions. I’m just trying to assign one to a button, but it seems the button wants a Unity.Action instead of a System.Action.

Is there any way I can typecast?

Thanks! - YA

Is that you want to assign the action to the OnClick event of the Button? If so, maybe you can write as follows:

button.onClick.AddListener(new UnityAction(action));