public override IEnumerator ReceiveStates() { Debug.Log("#Firebase#Requesting game states"); _handler.RequestGameStates(); yield return(new WaitUntil(FirebaseWrapper.CheckOperationStatus(FirebaseWrapper.OperationGameState))); yield return(new WaitForEndOfFrame()); Debug.Log("#Firebase#Received game states"); receivedStates = _handler.LastGameStates; Debug.Log("#Firebase#Requesting Items"); _handler.RequestItems(); yield return(new WaitUntil(FirebaseWrapper.CheckOperationStatus(FirebaseWrapper.OperationItems))); yield return(new WaitForEndOfFrame()); Debug.Log("#Firebase#Received Items"); receivedItems = _handler.LastItems; Ready = true; }