Stuck on success

For some reason my game does move past the success button. The start button works fine but then I get stuck on success. This is my code for Scene Loader:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.SceneManagement;

public class SceneLoader : MonoBehaviour

{

public void LoadNextScene()

{

int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;

SceneManager.LoadScene(currentSceneIndex = 1);

}

public void LoadStartScene()

{

    int startSceneIndex = SceneManager.GetActiveScene().buildIndex;

    SceneManager.LoadScene(startSceneIndex = 0);

}

}

Hi,

Welcome to our community! :slight_smile:

Have you already tried to add Debug.Logs to your code to see what is going on during runtime? Are your scenes in the Build Settings (File > Build Settings)?