Advertisement
Learning000001

Untitled

Oct 2nd, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public void LoginWithGoogle(Action<bool> _callBack)
  2. {
  3. callBack = _callBack;
  4. GoogleManager.Init(Login);
  5.  
  6. void Login()
  7. {
  8. GoogleManager.Login(HandleLoginSuccess,HandleLoginFailed);
  9. }
  10. }
  11.  
  12. private void HandleLoginSuccess(Credential _credentials)
  13. {
  14. FirebaseManager.Instance.Login(_credentials,HandleFirebaseLogin);
  15. }
  16.  
  17. private void HandleLoginFailed(string _reason)
  18. {
  19. Debug.Log(_reason);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement