I have NO idea what to do i have been in countless threads on here and reddit and youtube videos but i cant seem to find the error
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour
{
public class PlayGame() {
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
public void QuitGame() {
Debug.Log("QUIT!");
Application.Quit();
}
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
the error says:
The name âSceneManagerâ does not exist in the current context.(IDE1007)
What i have tried:
-not using âusing UnityEngine.SceneManagmentâ
-tried using âSceneManager and SceneManagmentâ
- i already updated my IDE and some Drivers
im actually clueless why it wont work