public void SubmitDialog() { PlayerPrefs.SetString("PlayerName", GameOptions.Instance.name); PlayerPrefs.Save(); optionsLoaderScript.SaveGameOptions(); CancelDialog(); }
public void SubmitDialog() { //PROBAR PLAYER PREFS PlayerPrefs.SetString("PlayerName", GameOptions.Instance.Name); PlayerPrefs.Save(); _optionsLoader.SaveGameOptions(); CancelDialog(); }
public void OkDialog() { //_name = GameObject.Find("NameText").GetComponent<UnityEngine.UI.InputField>().text; //_volume = GameObject.Find("VolumeSlider").GetComponent<UnityEngine.UI.Slider>().value; //_difficulty = GameObject.Find("DifficultyDropdown").GetComponent<UnityEngine.UI.Dropdown>().value; // Probando el PlayerPrefs. PlayerPrefs.SetString("PlayerName", GameOptions.Instance.Name); PlayerPrefs.Save(); _optionsLoader.SaveGameOptions(); CancelDialog(); }