public void OnClick() { if (data.numberOfPlayersInMatch < data.maxPlayers) { parentList.Success(); } else { parentList.Failure(); } }