public void UpdateSave() { string s = PlayerPrefs.GetString("plates_" + LoginManager.player.playername, null); string updateRequest = url + "/user/updateprogress?save=" + s + "&username="******"Save succeed."); } else { promtState = PromtState.error; PromtCanvas("Save failed."); } }
public void PromtPanel(string announce, PromtState promtState) { if (!promtPanel.activeInHierarchy) { this.promtState = promtState; promtPanel.SetActive(true); loginPanel.SetActive(false); registerPanel.SetActive(false); promtText.text = announce; } }