title: Initialize FirebaseFirestore in Unity C#
body: <p>So I've been working with FireStore for awhile for applications(Typescript/Javascript).</p>
  <p>Working on something in Unity and and I just finished installing all the proper packages and dependencies for FireStore for unity.</p>
  <p>I have no clue how to initialize a FireStore object to connect it with my Firebase FireStore.</p>
  <p>Firebase with unity seem relatively new as there is little documentation.</p>
  <p>FireStore with unity documentation seems almost non-existent.</p>
  <p>C# firestoreTest</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  using Firebase;
  using Firebase.Analytics;
  using Firebase.Database;
  using Firebase.Unity.Editor;
  using Firebase.Firestore;
  
  
  public class firestoreTest : MonoBehaviour
    {
      void Start()
      {
        FirebaseFirestore db = FirebaseFirestore.DefaultInstance; // &lt;- Not sure if this is how you properly initialize it.
  
        //
        //The follow code is from the official Firebase Firestore site for C#.
        //Link
        //https://firebase.google.com/docs/firestore/manage-data/add-data#c_5
  
        DocumentReference docRef = db.Collection(&quot;TestUnity&quot;).Document(&quot;XsAaTp9dJ6vz33ngzUah&quot;);
        Dictionary&lt;string, object&gt; city = new Dictionary&lt;string, object&gt;
        {
            { &quot;name&quot;, &quot;Los Angeles&quot; },
            { &quot;state&quot;, &quot;CA&quot; },
            { &quot;country&quot;, &quot;USA&quot; }
        };
        await docRef.SetAsync(city); // &lt;- this throws an error for async problems.
      }
  
    }
  </code></pre>
  <p>What I'm trying to do is save some variables to FireStore from Unity.</p>
  <p>Should be able to do handle everything else myself, just don't know the proper syntax to do so.</p>
  <p>Issues: Not knowing how to initialize a 'FirebaseFirestore db' to my database properly and having errors with async syntax and I'm not too familiar with C#.</p>
  <p>Note* I do know how to save information from Unity to Firebase's 'Realtime-Database' but all my other applications run off Firebase Firestore and I wish for all the applications to have an easy time communicating with each other.</p>