Guest User

Untitled

a guest
Feb 25th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. extends Node
  2.  
  3. var db_ref
  4. func _ready():
  5.     Firebase.Auth.login_with_email_and_password("[email protected]", "password")
  6.     Firebase.Auth.connect("login_succeeded", self, "get_db_connection")
  7.  
  8.  
  9. func get_db_connection(auth) -> void:
  10.     print("hello")
  11.     db_ref = Firebase.Database.get_database_reference("levels", { })
  12.     db_ref.connect("push_failed", self, "_on_push_failed")
  13.     var dict = db_ref.get_data()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment