Created a link to the play menu from the main menu

This commit is contained in:
Anthony Berg
2020-11-30 23:49:57 +00:00
parent f64cf54803
commit 98faaf2290
3 changed files with 13 additions and 1 deletions

View File

@@ -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!");