Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- using UnityEngine.UI;
- public class MainMenu : MonoBehaviour
- {
- public Text playerDisplay;
- // Start is called before the first frame update
- void Start()
- {
- if (DBManager.LoggedIn)
- {
- playerDisplay.text = "Player: " + DBManager.username + " House: " + DBManager.house;
- }
- }
- public void GoToRegister()
- {
- SceneManager.LoadScene(1);
- }
- public void GoToLogin()
- {
- SceneManager.LoadScene(2);
- }
- public void GoToGame()
- {
- SceneManager.LoadScene(3);
- }
- public void GoToLeaderBoard()
- {
- SceneManager.LoadScene(4);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment