Completed basic main menu with sub menus that have no functionality
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MainMenu : MonoBehaviour
|
||||
{
|
||||
|
||||
public void PlayGame()
|
||||
{
|
||||
SceneManager.LoadScene("Hub World", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
Debug.Log("QUIT");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user