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); }
public int ShotCount() { int shotCount = 0; Shots.ForEach(s => { shotCount += s.Count; }); if (Goal != null) { shotCount++; } return(shotCount); }