i have 100 booleans. but i do not want to create 100 different function to change each boolean (to prevent script from going too long).
i like a create just 1 function that can change selected boolean to true using button. end result i hope to have 100 buttons that can change each boolean using that one function.
for the image below on button on click, i was expecting a input field for selecting either of the boolean instead of the checkbox. any way to change that?
public bool bool1 = false;
public bool bool2 = false;
public bool bool3 = false;
....
public bool bool100 = false;
public void ChangeBool(bool a)
{
a = true;
}