public void LostInterest(Bypasser c) { int i = participants.IndexOf(c); numOfParticipants--; participants.RemoveAt(i); if (numOfParticipants < 0) { Debug.Log("negative participants, too many removals"); numOfParticipants = 0; } }
public void NewParticipant(Bypasser c) { numOfParticipants++; // TODO: keep reference to those bypassers participants.Add(c); }