public static async Task InitializeUserInfo() { UserInfo userInfo = await GetUserInfo.GetUserAsync(); _username = userInfo.userName + ""; _userID = userInfo.platformUserId; }
public static async void GetPlatformUserData(Action <string, ulong> usernameResolved) { var user = await GetUserInfo.GetUserAsync(); usernameResolved?.Invoke(user.userName, ulong.Parse(user.platformUserId)); }
private static async Task WaitForUserID() { user = await GetUserInfo.GetUserAsync(); }