void Start() { pm_instance = this; if (databasePlayer == null) { databasePlayer = new DatabasePlayer(); } manageLanguageMainScreen = FindObjectOfType <ManageLanguageMainScreen>(); phaseList = new Dictionary <string, int>(); playFabId = ""; displayName = ""; sizePhase = 4; messageTextLogin = messageLogin.GetComponent <Text>(); messageTextRegister = messageRegister.GetComponent <Text>(); isLogged = false; playButton.GetComponent <Button>().interactable = false; playerPrefs = new PlayerPreferences(); if (playerPrefs.getUsername() != null) { username = playerPrefs.getUsername(); messageTextLogin.text = ""; progressBar.SetActive(true); loginButton.GetComponent <Button>().interactable = false; databasePlayer.loginWithUsername(username, onSucessLogin, onFailureLogin); } }
void Start() { manageLanguageMainScreen = FindObjectOfType <ManageLanguageMainScreen>(); background.enabled = false; txt.enabled = false; }