public string GetUserId() { UnityConnect instance = UnityConnect.instance; string result; if (!instance.GetConnectInfo().loggedIn) { result = string.Empty; } else { result = instance.GetUserInfo().userId; } return(result); }
public string GetUserName() { UnityConnect instance = UnityConnect.instance; string result; if (!instance.GetConnectInfo().loggedIn) { result = "Anonymous"; } else { result = instance.GetUserName(); } return(result); }