// Update is called once per frame void Update() { //increases game timer every second if (timerStarted) { gameTimer += Time.deltaTime; } //change weather condition depending on time if (Time.time > nextActionTime) { nextActionTime = Time.time + period; if (isStorm && gameTimer >= 10) { isDrought = true; //spawnFire = true; isStorm = false; layout.Respawn(); OnWeatherChange(); } else { isStorm = true; isDrought = false; OnWeatherChange(); layout.Respawn(); } } hungerThirstTimer(hsTimerSeconds); UpdateInventoryText(); if (playerHealth <= 0) { Time.timeScale = 0; youLose.text = "Sorry You Died :-("; } AxeLogic(); }