Advertisement
Learning000001

Untitled

Apr 26th, 2024
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. //pseudo code!!!!!!!!
  2.  
  3.     private string projectLink = "https://qqweb-b75ae-default-rtdb.firebaseio.com";
  4.     public string UserDataLink => $"{projectLink}/users/{userLocalId}/";
  5.  
  6.  
  7.     private void CollectPlayerData(Action<bool> _callBack)
  8.     {
  9.         StartCoroutine(WebRequests.Instance.Get(UserDataLink + "/.json", (_result) =>
  10.         {
  11.             Debug.Log("Got data: "+_result);
  12.             _callBack?.Invoke(true);
  13.         }, (_) => { _callBack?.Invoke(false); }));
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement