コード例 #1
0
 public void GetPlayerStats(Action <CommonStatusCodes, PlayerStats> callback)
 {
     if (mClient != null && mClient.IsAuthenticated())
     {
         mClient.GetPlayerStats(callback);
     }
     else
     {
         Logger.e("GetPlayerStats can only be called after authentication.");
         callback(CommonStatusCodes.SignInRequired, new PlayerStats());
     }
 }
コード例 #2
0
        public void GetPlayerStats(Action <CommonStatusCodes, PlayGamesLocalUser.PlayerStats> callback)
        {
            if (mClient != null && mClient.IsAuthenticated())
            {
                mClient.GetPlayerStats(callback);
            }
            else
            {
                GooglePlayGames.OurUtils.Logger.e("GetPlayerStats can only be called after authentication.");

                callback(CommonStatusCodes.SignInRequired, null);
            }
        }