Hi, I’m writing a code but it looks like I need to write the code for each player is there another way to make it shorter for multiple players what I want is if there is more than one player boolean that is true switch it to false for all the players, I hope that I explained my issue well.
public GrabController grab;
public GrabController grab1;
void Update()
{
if (grab1.isGrabed && grab.isGrabed)
{
grab.isGrabed = false;
grab1.isGrabed = false;
}
}