After following this video :
At min 26, I got the following error :
UnityEngine.Debug:Log(Object)```
And here is my actual code:
```csharp
public void SignUpUserButton(){
SignUpUser(emailText.text,usernameText.text,passwordText.text);
}
public void SignInUserButton(){
SignInUser(emailText.text,passwordText.text);
}
private void PostToDatabase(bool emptyScore=false){
User user = new User();
if (emptyScore){
user.userScore = 0;
}
RestClient.Put(url:databaseURL + localId +".json",user);
}
private void SignUpUser(string email,string username,string password)
{
string userData = "(\"email\":" + email + ",\"password\": "+ password +"\",\"returnSecureToken\":true";
RestClient.Post<SignResponse>("https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=" + AuthKey,bodyString: userData).Then(response => {
localId = response.localId;
idToken = response.idToken;
playerName = username;
PostToDatabase(true);
}).Catch(error =>
{
Debug.Log(error);
});
Using Rest Client API, imported the last version from asset store.
I would really appreciate some help, since I got to deliver my senior project in a week Thank you!