Esempio n. 1
0
 void RetryPurchase(int id, string code, string product)
 {
     itemid      = id;
     itemcode    = code;
     itemproduct = product;
     RequestIAP  = new IAPEvent(new EventDelegate(this, "RetryIAP"));
     NetMgr.RequestIAP(itemid, itemcode, IsTest, RequestIAP);
 }
Esempio n. 2
0
 void MileageDialogueHandler(DialogueMgr.BTNS btn)
 {
     if (btn == DialogueMgr.BTNS.Btn1)
     {
         if (int.Parse(UserMgr.UserInfo.userDiamond) < Gcost)
         {
             DialogueMgr.ShowDialogue("구매 실패", "마일리지가 부족합니다.", DialogueMgr.DIALOGUE_TYPE.Alert, null);
         }
         else
         {
             Sgold = Gs;
             if (GI)
             {
                 golds = new IAPEvent(new EventDelegate(this, "mGrequestIAP"));
                 NetMgr.PurchaseGold(Gid, golds);
             }
             else
             {
                 items = new IAPEvent(new EventDelegate(this, "mIrequestIAP"));
                 NetMgr.PurchaseItem(Gid, items);
             }
         }
     }
 }