I have a method which requires two parameters in c# for Unity5
public void BuyBullet(int Select, int Cost)
{
}
The method is called by the OnClick method of a button which must pass these two parameters, but when trying to embed the method in the onClick it is not possible when there are two parameters, but when it only requests one parameter.
I couldn't find a way to pass two parameters from the public method, the solution was to pass a string and separate it using ,
In this way when I have the public object in the Unity visual I enter a string separating the values by , Eg: valueOne, valueTwo