コード例 #1
0
ファイル: AdminGamesTest.cs プロジェクト: Hertzole/unity-sdk
 public void GetAllGamesToTheCurrentUser()
 {
     LootLockerSDKAdminManager.GetAllGamesToTheCurrentUser((response) =>
     {
         if (response.success)
         {
             Debug.LogError("Successful got all games: " + response.text);
         }
         else
         {
             Debug.LogError("failed to get all games: " + response.Error);
         }
     });
 }
コード例 #2
0
 public void PopulateGames()
 {
     Repaint();
     Debug.Log("Getting games..");
     LootLockerSDKAdminManager.GetAllGamesToTheCurrentUser((response) =>
     {
         if (response.success)
         {
             gamesResponse = response;
             currentView   = LootLockerView.Games;
             Repaint();
             Debug.Log("Successful got all games: " + response.text);
         }
         else
         {
             Debug.LogError("failed to get all games: " + response.Error);
         }
     });
 }