예제 #1
0
    /// <summary>
    ///
    /// </summary>
    /// <param name="wasAlreadyRedemed">If set to <c>true</c>  if the player has already redeemed this offer.</param>
    public void ContinueClicked(bool wasAlreadyRedemed = false)
    {
        UnityAction <string> afterRedeem = (string result) =>
        {
            if (!string.IsNullOrEmpty(result))
            {
                DialogCanvasController.RequestItemViewer(new List <string>()
                {
                    result
                }, true);
            }

            PF_PlayerData.OfferContainers.RemoveAt(0);
            this.Init();
        };

        PF_PlayerData.RedeemItemOffer(this.activeItem, this.activeInstance.ItemInstanceId, afterRedeem, wasAlreadyRedemed);
    }