private void SetupLevel(int newLevel)
{
// print ("SetupLevel("+newLevel+")");
for (int i = 0; i < totalTrials + 1; ++i) {
if (i != newLevel) {
string targetTag = "Trial" + i;
// print ("deactivating objects with tag "+targetTag);
GameObject[] toDeactivate = GameObject.FindGameObjectsWithTag(targetTag);
foreach (GameObject obj in toDeactivate) {
obj.SetActive(false);
}
}
}
}