Hi all,
I have three toggles placed in a ToggleGroup. The first time I click on a toggle the value in the source code below changes. If I click on another one and then click on the first one again it does not run the onValueChanged function again. Here is the code:
public void CreditsChanged()
{
if (twentyCredits.isOn == true) {
creditsSelected = 20;
}
else if (fiftyCredits.isOn == true) {
creditsSelected = 50;
}
else if (maxCredits.isOn == true) {
creditsSelected = 150;
}
Debug.Log("Selected: " + creditsSelected);
}
So the first time I click on a Toggle, I see the Debug statement and the second time I don’t. Any advice is greatly appreciated.