public void InitGameManagers()
        {
            HMSSaveGameManager.Instance.SavedGameAuth();
            HMSLeaderboardManager.Instance.rankingsClient      = Games.GetRankingsClient();
            HMSAchievementsManager.Instance.achievementsClient = Games.GetAchievementsClient();

            playersClient  = Games.GetPlayersClient();
            archivesClient = Games.GetArchiveClient();
            buoyClient     = Games.GetBuoyClient();
        }
Beispiel #2
0
 public void GetPlayerInfo()
 {
     if (accountManager.HuaweiId != null)
     {
         IPlayersClient playersClient = Games.GetPlayersClient(accountManager.HuaweiId);
         ITask <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);
         });
     }
 }
 public NbaPlayerSearchModelBuilder(IPlayersClient playersClient, IConfiguration configuration)
 {
     _playersClient = playersClient;
     _config        = configuration;
 }
 public NbaPlayerTrackerModelBuilder(IPlayersClient playersClient, IPlayersFollowedDataAccessor playersFollowedDataAccessor, IConfiguration configuration)
 {
     _playersClient     = playersClient;
     _playersDbAccessor = playersFollowedDataAccessor;
     _config            = configuration;
 }