Quantcast
Channel: AI Beta - Unity Discussions
Viewing all articles
Browse latest Browse all 109

Menu does not stop

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 109

Trending Articles