コード例 #1
0
 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 T NextT()
            {
                var t = Tees.RequestNextElement();

                if (_seenTees.Contains(t))
                {
                    Environment.Flop($"Helper publisher illegally produced the same element {t} twice");
                }
                _seenTees.Add(t);
                return(t);
            }
コード例 #3
0
 public T NextT()
 {
     LastT = Tees.RequestNextElement();
     return(LastT);
 }