Beispiel #1
0
        public IEnumerator TearDownFirestore()
        {
            yield return(T().YieldWait()); async Task T()
            {
                await SetUpFirestoreForTest(recreateUser : false);
            }

            //if you dispose before above, it hard crash unity lol
            if (Application.isPlaying == false)
            {
                Firestorm.DisposeEditModeInstance();
            }
        }
Beispiel #2
0
 public IEnumerator SetUpFirestore()
 {
     if (Application.isPlaying == false)
     {
         Firestorm.CreateEditModeInstance();
     }
     Firestorm.AuthInstance.SignOut();
     yield return(T().YieldWait()); async Task T()
     {
         await SetUpFirestoreForTest(recreateUser : true);
         await SignInSuperUser();
     }
 }