This commit is contained in:
Anthony 2020-12-01 10:58:17 +00:00
commit 1e135a6484
2 changed files with 11 additions and 0 deletions

View File

@ -362,6 +362,8 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
PlayButton: {fileID: 710092055}
MainMenuUI: {fileID: 409713701}
PlayUI: {fileID: 820348871}
--- !u!1 &514864490
GameObject:
m_ObjectHideFlags: 0

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