Professional Documents
Culture Documents
Collections;
using System.Collections.Generic;
using UnityEngine;
using Facebook.Unity;
using Firebase;
using Firebase.Auth;
using UnityEngine.UI;
}
else{
Debug.Log("log failed");
Panel.SetActive(false);
PanelError.SetActive(true);
}
}
//if (FB.IsLoggedIn){
// return;
//}
FirebaseAuth.DefaultInstance.SignInWithCredentialAsync(firebaseResult).
ContinueWith(task =>
{
if (task.IsCanceled)
{
Debug.LogError("SignInWithCredentialAsync was canceled.");
return;
}
if (task.IsFaulted)
{
Debug.LogError("SignInWithCredentialAsync encountered an error: "
+ task.Exception);
return;
}