public void GetPlayerInfo()
 {
     if (HMSAccountManager.Instance.HuaweiId != null)
     {
         ITask <HuaweiMobileServices.Game.Player> task = playersClient.CurrentPlayer;
         task.AddOnSuccessListener((result) =>
         {
             Debug.Log("[HMSGameManager] GetPlayerInfo Success");
             OnGetPlayerInfoSuccess?.Invoke(result);
         }).AddOnFailureListener((exception) =>
         {
             Debug.LogError("[HMSGameManager]: GetPlayerInfo failed. CauseMessage: " + exception.WrappedCauseMessage + ", ExceptionMessage: " + exception.WrappedExceptionMessage);
             OnGetPlayerInfoFailure?.Invoke(exception);
         });
     }
 }
 public void GetPlayerInfo()
 {
     if (HMSAccountManager.Instance.HuaweiId != null)
     {
         IPlayersClient playersClient = Games.GetPlayersClient();
         ITask <HuaweiMobileServices.Game.Player> task = playersClient.CurrentPlayer;
         task.AddOnSuccessListener((result) =>
         {
             Debug.Log("[HMSP:] GetPlayerInfo Success");
             OnGetPlayerInfoSuccess?.Invoke(result);
         }).AddOnFailureListener((exception) =>
         {
             Debug.Log("[HMSP:] GetPlayerInfo Failed");
             OnGetPlayerInfoFailure?.Invoke(exception);
         });
     }
 }