Esempio n. 1
0
 void Start()
 {
     json = new JSONController();
     json.LoadField();
     if (json.item.loggedIn == "true")
     {
         text.text = PlayerPrefs.GetString("USERNAME");
     }
 }
Esempio n. 2
0
 public void OnClickLogout()
 {
     json = new JSONController();
     json.LoadField();
     json.item.loggedIn = "false";
     json.item.Name     = "";
     json.SaveField();
     text.text = "None";
     PlayerPrefs.DeleteKey("EMAIL");
     PlayerPrefs.DeleteKey("PASSWORD");
 }
Esempio n. 3
0
 public void OnClick()
 {
     json = new JSONController();
     json.LoadField();
     if (json.item.loggedIn == "true")
     {
         SceneManager.LoadScene(3);
     }
     else
     {
         SceneManager.LoadScene(2);
     }
 }
Esempio n. 4
0
    void Start()
    {
        json = new JSONController();
        json.LoadField();
        if (string.IsNullOrEmpty(PlayFabSettings.TitleId))
        {
            PlayFabSettings.TitleId = "321";
        }


        if (json.item.loggedIn == "true")
        {
            userEmail    = PlayerPrefs.GetString("EMAIL");
            userPassword = PlayerPrefs.GetString("PASSWORD");
            var requst = new LoginWithEmailAddressRequest {
                Email = userEmail, Password = userPassword
            };
            PlayFabClientAPI.LoginWithEmailAddress(requst, OnLoginSuccess, OnLoginFailureStart);
        }
    }
Esempio n. 5
0
 void Start()
 {
     json.LoadField();
     text.text = json.item.Name;
 }
Esempio n. 6
0
 void Start()
 {
     json.LoadField();
     InputField1.text = json.item.Name;
     //InputField1.text = PlayerPrefs.GetString(saveNameKey);
 }