public static void NextLevel() { currentLevel += 1; currentLevelProgression = 0; CurrentWord.ResetWords(); RecalculateSpeed(); if (currentLevel % 2 == 1) { GameObject.Find("MainCamera").GetComponent <CameraTransition>().ChangeToOfficeCamera(); //1.5f when you are in the office CurrentWord.InvokeSpawn(2f); } else { //2f when you are at home CurrentWord.InvokeSpawn(2.5f); GameObject.Find("MainCamera").GetComponent <CameraTransition>().ChangeToHomeCamera(); } }