public void LoadPlayerInfo()
        {
            if (Username == null || UserID == 0)
            {
                Username = SteamFriends.GetPersonaName();
                UserID   = SteamUser.GetSteamID().m_SteamID;

                PlayerInfoLoaded.Invoke(Username, UserID);
            }
        }
Esempio n. 2
0
        public void LoadPlayerInfo()
        {
            if (Username == null || UserID == 0)
            {
                Users.GetLoggedInUser().OnComplete((Message <User> msg) =>
                {
                    Username = msg.Data.OculusID;
                    UserID   = msg.Data.ID;

                    PlayerInfoLoaded.Invoke(Username, UserID);
                });
            }
        }