How do I return scene using bulid index scenemanager in c#

I am having a problem is when timer reaches zero it reloads the current scene. I want to reload a different scene . I tried application load , scene manager load scene and nothing happens. Here is what I got for code :



To load the next scene in the build index, you can add “+1” after the current buildIndex:

SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);

It can be stored as an int, if you wish:

int nextBuildIndex = SceneManager.GetActiveScene().buildIndex + 1;

If a specific scene needs to be loaded, then it needs to be specified:


I have a Problem two , so i use binary files to save evrything but i save the int currentLevel and set that equal to the current buildindex so now i want to load with SceneManager currentLevel.

Any solutions?