IEnumerator LoadLevel(string scene) { NexLevelLoading = scene; SceneManager.LoadScene("LoadingScreen"); yield return(new WaitForSeconds(1)); float gameLoad = 0; while (gameLoad < 1) { loadManager_.ChangeProgress(gameLoad); yield return(new WaitForEndOfFrame()); gameLoad += 0.01f; } loadManager_.ChangeProgress(1); }