public void CreateAccountButton() { Debug.Log("Attempting to create an account"); CreateAccount createAccount = gameObject.AddComponent <CreateAccount>(); createAccount.CreateAccountButton(emailInput.text, usernameInput.text, passwordInput.text, ac); }