示例#1
0
    public void RedeemCoupon()
    {
        UnityAction <string> afterPrompt = (string response) =>
        {
            if (!string.IsNullOrEmpty(response))
            {
                PF_GamePlay.RedeemCoupon(response);
            }
        };

        DialogCanvasController.RequestTextInputPrompt("Redeem a Coupon Code", "Enter a valid code to redeem rewards.", (string response) => { afterPrompt(response); }, "XXX-XXXX-XXX");
    }