Пример #1
0
 private IEnumerator Ticker()
 {
     while (true)
     {
         entitySystem.Tick();
         yield return(new WaitForSeconds(GlobalConstants.TickPeriodInSeconds));
     }
 }
Пример #2
0
 private IEnumerator Ticker()
 {
     while (Application.isPlaying)
     {
         entitySystem.Tick();
         yield return(new WaitForSeconds(Constants.TickPeriodInSeconds));
     }
 }