Пример #1
0
 public override SolarState Next(SolarManager manager)
 {
     if (manager.HasReachedEnd(false))
     {
         return(new SolarStateIdlingNight());
     }
     return(null);
 }
Пример #2
0
 protected override SolarState DelayedNext(SolarManager manager)
 {
     if (manager.HasReachedEnd(true))
     {
         return(new SolarStateIdlingDusk());
     }
     else if (manager.HasOutputDiminished() || iteration++ > 1)
     {
         return(new SolarStateIdlingDay());
     }
     return(null);
 }