mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-05-18 06:14:10 +02:00
Merge branch 'master' of https://github.com/smyalygames/monopoly
This commit is contained in:
commit
1e135a6484
@ -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
|
||||
|
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user