public void On_Change_Account_Data() { //users.Check_Multi_Login(users.id); string new_username, new_fullName, new_country, new_website, new_aboutMe, new_address, new_email, new_phoneNo, new_gender, new_birthday; int chosenCountryIndex = GameObject.Find("Dd_Country").GetComponent <Dropdown>().value; int chosenGenderIndex = GameObject.Find("Dd_Gender").GetComponent <Dropdown>().value; new_username = GameObject.Find("Input_Username").GetComponent <InputField>().text; new_fullName = GameObject.Find("Input_FullName").GetComponent <InputField>().text; new_country = countries.id[chosenCountryIndex]; new_website = GameObject.Find("Input_Website").GetComponent <InputField>().text; new_aboutMe = GameObject.Find("Input_AboutMe").GetComponent <InputField>().text; new_address = GameObject.Find("Input_Address").GetComponent <InputField>().text; new_email = GameObject.Find("Input_Email").GetComponent <InputField>().text; new_phoneNo = GameObject.Find("Input_PhoneNo").GetComponent <InputField>().text; new_birthday = GameObject.Find("Input_Birthday").GetComponent <InputField>().text; if (chosenGenderIndex > 0) { new_gender = GameObject.Find("Dd_Gender").GetComponent <Dropdown>().captionText.text; } else { new_gender = ""; } users.Change_Account_Data(users.username, new_username, new_fullName, new_country, new_website, new_aboutMe, new_address, new_email, new_phoneNo, new_gender, new_birthday); }