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);
}
}