- Home /
Changing multiple toggle states.
I am trying to change the state of multiple toggles. I connected a function to each toggle. However if i apply only one function there is no problem. But when i connect all my functions to the toggles i get a stack overflow.
public void beg(){
beginner.isOn=true;
intermediate.isOn=false;
expert.isOn=false;
warrant.isOn=false;
major.isOn=false;
general.isOn=false;
dead.isOn=false;
guardian.isOn=false;
immortal.isOn=false;
}
public void inter(){
beginner.isOn=false;
intermediate.isOn=true;
expert.isOn=false;
warrant.isOn=false;
major.isOn=false;
general.isOn=false;
dead.isOn=false;
guardian.isOn=false;
immortal.isOn=false;
}
Comment
Your answer
Follow this Question
Related Questions
What is wrong with my Counter Script? (C#) 1 Answer
Troubles with 2D character anims with multiple states 0 Answers
2D Dotted LineRenderer 2 Answers
A node in a childnode? 1 Answer
Using Texture Assets in Code 1 Answer