static void CheckHideFlags(HideFlags hideFlags = HideFlags.HideInHierarchy) { Curves.ForEach(x => x.gameObject.hideFlags = hideFlags); Hazards.ForEach(x => x.gameObject.hideFlags = hideFlags); Tees.ForEach(x => x.gameObject.hideFlags = hideFlags); Shots.ForEach(x => x.gameObject.hideFlags = hideFlags); Pins.ForEach(x => x.gameObject.hideFlags = hideFlags); Measures.ForEach(x => x.gameObject.hideFlags = hideFlags); FlyBys.ForEach(x => x.gameObject.hideFlags = hideFlags); }
private void OnDisable() { Pins.ForEach(x => x.SetActive(false)); }