I am new to Unity 5, and I have started on using UI to make a main menu. I have made a button that will end the exe program, and will close the application (It says “EXIT”), but I have another button that says “PLAY”, and i want it to close the UI, so there is no overlay. This is what i have so far:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class menuScript : MonoBehaviour
{
public Canvas quitMenu;
public Button startText;
public Button exitText;
public void ExitGame ()
{
Application.Quit();
}
public void StartGame ()
{
}