private void StartListening() { firebase.Listen(databasePath, ( object value ) => { if (presetProperties.NeedsRead(( string )value)) { values.UpdateProperties(presetProperties.p); needsUpdate = true; } }); }
private void OnFirebaseReady() { Debug.Log("Firebase ready"); ready = true; if (isController) { StartCoroutine(UpdateValuesCoroutine()); } else { firebase.Listen("admin/camera", GetCameraValues); } }