mirror of
https://github.com/smyalygames/monopoly.git
synced 2026-01-04 02:38:42 +01:00
Created a link to the play menu from the main menu
This commit is contained in:
@@ -7,10 +7,13 @@ public class MainMenu : MonoBehaviour
|
||||
{
|
||||
|
||||
public Button PlayButton; //Imports the play button
|
||||
public GameObject MainMenuUI;
|
||||
public GameObject PlayUI;
|
||||
private string existingProperties; //The variable for the properties
|
||||
private string existingCards;
|
||||
|
||||
void Start() {
|
||||
PlayButton.onClick.AddListener(OpenPlayMenu);
|
||||
Debug.Log("User ID: " + UserManager.userID);
|
||||
Debug.Log("Username: " + UserManager.username);
|
||||
if (!PropertiesHandler.CheckPropertyExists()) //Checks if the properties file doesn't exist.
|
||||
@@ -46,6 +49,12 @@ public class MainMenu : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void OpenPlayMenu()
|
||||
{
|
||||
MainMenuUI.SetActive(false);
|
||||
PlayUI.SetActive(true);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Debug.Log("QUIT!");
|
||||
|
||||
Reference in New Issue
Block a user