public void OnNameOkClick() { SoundManager.GetInstance().OnClickSound(); if (!string.IsNullOrEmpty(nameField.text)) { var name = nameField.text + Random.Range(1, 1000).ToString(); PlayerPrefs.SetString("name", name); namePanel.SetActive(false); waitPanel.SetActive(true); ParseManager.RegisterUser(name, "123456", RegisterCallback); } }