How do I fix this it was working before but it broke somehow:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SM_SceneSwitcher : MonoBehaviour {
public void playGame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
public void Back()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);
}