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(); } }
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(); } }