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; } } }