SHARE
TWEET

Untitled

MarineKing710 Sep 22nd, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public IEnumerator UpdateRanking()
  2.     {
  3.         GameManager.Get().ActiveLoadingData();
  4.  
  5.         Task<DataSnapshot> getDataSnapShot = _databaseReference.Child("users").OrderByChild("score").GetValueAsync();
  6.  
  7.         yield return WaitTask(getDataSnapShot);
  8.  
  9.         DataSnapshot snapshot = getDataSnapShot.Result;
  10.  
  11.         // 모든 유저 데이터 받아오는 부분
  12.         if (snapshot.ChildrenCount > 0)
  13.         {
  14.             SettingUserList(snapshot);
  15.         }
  16.  
  17.         GameManager.Get().UnActiveLoadingData();
  18.  
  19.         yield return null;
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top