title: Event listener not working with firebase query
body: <p>I am trying to create an event listener to my firebase query script but it acts a little strange?!?</p>
  <p>Here is my script:</p>
  <pre><code>using System.Collections.Generic;
  using UnityEngine;
  using System.Linq;
  using UnityEngine.Events;
  using Firebase.Firestore;
   
  public class TestDataHandler : MonoBehaviour
  {
   
      public GameObject testObject;
   
      private void Start()
      {
          fbEvent.AddListener(readyToGo);
          GetUserData(&quot;12345&quot;);
      }
   
      void readyToGo()
      {
          Debug.Log(&quot;Do Stuff&quot;);
          tetsObject.SetActive(false);
          Debug.Log(&quot;Stuff Done&quot;);
      }
   
      UnityEvent fbEvent = new UnityEvent();
   
      public void GetUserData(string userId)
      {
   
          Query query = FirebaseDataManager.instance.users
              .WhereEqualTo(&quot;userId&quot;, userId
              );
   
          query.GetSnapshotAsync().ContinueWith(querySnapshotTask =&gt;
          {
             
              if (querySnapshotTask.IsFaulted)
              {
                  Debug.Log(&quot;No userdata is found&quot;);
              }
              else if (querySnapshotTask.Result.Documents.Count() &lt; 1)
              {
                  Debug.Log(&quot;No userdata is found&quot;);
              }
              else
              {
                  DocumentSnapshot userData = querySnapshotTask.Result.Documents.FirstOrDefault();
                  Dictionary&lt;string, object&gt; data = userData.ToDictionary();
   
                  User tempUser = FirebaseSerializer.FBDataToObject(data) as User;
   
                  Debug.Log(&quot;Userdata found: &quot; + tempUser.firstName);
   
                  fbEvent.Invoke();
              }
          });
      }
   
  }
  </code></pre>
  <p>It kinda works, course the listener listens but I am not able to, in this example, deactivate an gameobject from the listener return function.</p>
  <p>I get the &quot;Do Stuff&quot; log, but not the &quot;Stuff Done&quot; log and the GameObject is not deactivated?</p>
  <p>What am I missing here?</p>