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; }
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; }