Exemplo n.º 1
0
 void Update()
 {
     if (InputController.gamePaused == false && TimeForTick == true && GameplayTickPause == false)
     {
         WorldMethods.DailyTick();
         TimeForTick = false;
     }
     if (TimeForTick == false)
     {
         timeWaitedForTick += Time.deltaTime;
         if (timeWaitedForTick > waitPerTick)
         {
             TimeForTick       = true;
             timeWaitedForTick = 0;
         }
     }
 }