public DBRefenece createRootRef(MonoBehaviour mb, string roomId) { string root = FireConfig.getInstance().getRootNode(); Debug.Log("root=" + root + " rid=" + roomId); return(new FireDBRefence(mb, FirebaseDatabase.DefaultInstance.GetReference(root).Child(roomId))); }
public void createConnect() { FirebaseApp app = FirebaseApp.DefaultInstance; string fireUrl = FireConfig.getInstance().getFirebaseUrl(); app.SetEditorDatabaseUrl(fireUrl); if (app.Options.DatabaseUrl != null) { app.SetEditorDatabaseUrl(app.Options.DatabaseUrl); } }