コード例 #1
0
 /// <summary>
 /// Returns the user's display name.
 /// </summary>
 /// <returns>
 /// The user display name (e.g. "Bruno Oliveira")
 /// </returns>
 public string GetUserDisplayName()
 {
     if (!IsAuthenticated())
     {
         Logger.e("GetUserDisplayName can only be called after authentication.");
         return("");
     }
     return(mClient.GetUserDisplayName());
 }
コード例 #2
0
        /// <summary>
        /// Returns the user's display name.
        /// </summary>
        /// <returns>
        /// The user display name (e.g. "Bruno Oliveira")
        /// </returns>
        public string GetUserDisplayName()
        {
            if (!IsAuthenticated())
            {
                GooglePlayGames.OurUtils.Logger.e("GetUserDisplayName can only be called after authentication.");
                return(string.Empty);
            }

            return(mClient.GetUserDisplayName());
        }
コード例 #3
0
    public string GetUserDisplayName()
    {
        if (!IsAuthenticated())
        {
            Debug.LogError("GetUserDisplayName can only be called after authentication.");
            return(string.Empty);
        }

        return(mClient.GetUserDisplayName());
    }