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();
}
}
5 posts - 4 participants