コード例 #1
0
 public override IEnumerable Run()
 {
     GetTime t = new GetTime();
     yield return t;
     float startTime = t.Time;
     while (true)
     {
         yield return t;
         if (t.Time >= startTime + Time)
             break;
     }
 }
コード例 #2
0
        public override IEnumerable Run()
        {
            GetTime t = new GetTime();

            yield return(t);

            float startTime = t.Time;

            while (true)
            {
                yield return(t);

                if (t.Time >= startTime + Time)
                {
                    break;
                }
            }
        }