コード例 #1
0
ファイル: InventoryExample.cs プロジェクト: fordream/UnitySDK
 public Action UnlockContainer(string itemId)
 {
     Action output = () =>
     {
         var unlockRequest = new ClientModels.UnlockContainerItemRequest();
         unlockRequest.CharacterId = characterId;
         unlockRequest.ContainerItemId = itemId;
         PlayFabClientAPI.UnlockContainerItem(unlockRequest, UnlockContainerallback, PfSharedControllerEx.FailCallback("UnlockContainerItem"));
     };
     return output;
 }
コード例 #2
0
ファイル: InventoryExample.cs プロジェクト: fordream/UnitySDK
 public static Action UnlockUserContainer(string itemId)
 {
     Action output = () =>
     {
         var unlockRequest = new ClientModels.UnlockContainerItemRequest();
         unlockRequest.CharacterId = null; // To indicate user inventory
         unlockRequest.ContainerItemId = itemId;
         PlayFabClientAPI.UnlockContainerItem(unlockRequest, UnlockUserContainerCallback, PfSharedControllerEx.FailCallback("UnlockContainerItem"));
     };
     return output;
 }