So basically, I have this foreach loop. The purpose of this foreach loop is to loop through each player in the player party, because each player has their own button. Let’s say I already have a reference to the button that is supposed to be clicked. How do I make the loop only move to the next item once the button has been pressed?
Should I just use an if/else-if or a switch statement instead?