I cannot seem to find a solution to SceneManagement

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

damn i might have overlooked that i wrote
‘public class’
instead of
‘public void’