Menu does not stop

I’m creating a menu for a game and it’s not working properly, I play the game and it goes straight to the game

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class NewBehaviourScript : MonoBehaviour
{
    public GameObject[] itensMenu;

    public void Start()
    {
        SceneManager.LoadScene(1);
    }

    public void QuitGame()
    {
        Application.Quit();
    }
}

You are loading scene 1 in your start statement.
So you hit play, it goes to start, loads scene 1. I assume you will want to change start to loadscene or something like that and link it to your menu button


but I have this
when I click it is supposed to go

Start is a base function of MonoBehavior , and is was auto call when this gameobject obtain that class start . You can try to change new name for your function

load the scene in a function and actiavte the event using the button and the u have declared the menu as an array and u didnt initialize the array so initialize the array

Could you give me an example so I can understand?