void ResetSpecialsMap() { foreach (Transform t in currentLevel.specialsMap) { // Reset ends EndVisualManager end = t.GetComponent <EndVisualManager>(); if (end != null) { end.finished = false; } // Reset toggles ToggleManager toggle = t.GetComponent <ToggleManager>(); if (toggle != null) { toggle.toggled = false; toggle.Reset(); } } }