IEnumerator LoseTime() { while (timeLeft > 0) { yield return(new WaitForSeconds(1)); //Använt time.DeltaTime vid tidigare tillfällen timeLeft--; } if (timeLeft == 0) { BtnReactor.ShowGameOverLayer(); } }