Using Button with "OnClick()" and exposing variables

I am trying to associate a function to the onClick() button script in Unity. This is related to this tutorial:
Creating a Scene Selection Menu: LoadOnClick.cs

If I do something like this it works and exposes an int that I can change in the editor:
public void LoadScene ( int level )

However, if I add an additional value it no longer works and I can’t assign the function to the button’s OnClick():
public void LoadScene ( int level, bool isAdditive)

What I’m I doing wrong?

Thanks!,
Kenny
www.gameofloot.com
www.superultrahyper.com

You can only have one variable assigned to a button’s script, read the restrictions about it in the documents.

@Gorgit99 - Thanks

that single parameter doesn’t have to be a primitive though, so you can create struct/classes to hold several values and pass those.