public void LgReset() { if (UIRayCastBlock != null) { UIRayCastBlock.blocksRaycasts = startsHidden ? false : true; } foreach (GameObject go in GoList) { TweenToggle toggle = go.GetComponent <TweenToggle>(); toggle.startsHidden = startsHidden; toggle.Reset(); } }