Пример #1
0
 private void StartListening()
 {
     firebase.Listen(databasePath, ( object value ) => {
         if (presetProperties.NeedsRead(( string )value))
         {
             values.UpdateProperties(presetProperties.p);
             needsUpdate = true;
         }
     });
 }
Пример #2
0
    private void OnFirebaseReady()
    {
        Debug.Log("Firebase ready");

        ready = true;

        if (isController)
        {
            StartCoroutine(UpdateValuesCoroutine());
        }
        else
        {
            firebase.Listen("admin/camera", GetCameraValues);
        }
    }