void cbBuy(RcBilling.E_BILLING_RESULT eResult, BillingTransaction billing) { Debug.Log("RCUIBuyGem:cbBuy()" + eResult); // UIManager.Inst.Alert("cbBuy=" + eResult); // DebugPanel.Log("cbBuy=", eResult); switch (eResult) { case RcBilling.E_BILLING_RESULT.Cancel: // 취소. break; case RcBilling.E_BILLING_RESULT.Success: // 성공. 캐시 증가 RcSaveData.Inst.gem += 500; RcSaveData.Inst.SaveGem(); UIManager.Inst.PopupMessage("GEM +500", 2.0f); RcBI.Inst.Buy("gem_500"); // 구입하고 초기화 안하면 구입 목록에 안나옴! RcBilling.Inst.Init(cbBillingInit); break; case RcBilling.E_BILLING_RESULT.Failed: // 실패. break; } base.OnTouched(); }
void cbBuy(RcBilling.E_BILLING_RESULT eResult, BillingTransaction billing) { Debug.Log("RcUIRemoveAd:cbBuy=" + eResult); switch (eResult) { case RcBilling.E_BILLING_RESULT.Cancel: // 취소. break; case RcBilling.E_BILLING_RESULT.Already: ProcessNoAds(); break; case RcBilling.E_BILLING_RESULT.Success: RcBI.Inst.Buy("remove_banner"); UIManager.Inst.PopupMessage(Localization.Get("remove_ad"), 2.0f); ProcessNoAds(); break; case RcBilling.E_BILLING_RESULT.Failed: // 실패. break; } base.OnTouched(); }
void cbBuy(RcBilling.E_BILLING_RESULT eResult, BillingTransaction billing) { Debug.Log("RcUIRemoveAd:cbBuy=" + eResult); switch (eResult) { case RcBilling.E_BILLING_RESULT.Cancel: // 취소. UIManager.Inst.PopupMessage("noads Cancel", 3f); break; case RcBilling.E_BILLING_RESULT.Success: UIManager.Inst.PopupMessage("noads success", 3f); // 성공. RcBI.Inst.Buy("remove_banner"); ProcessNoAds(); break; case RcBilling.E_BILLING_RESULT.Already: UIManager.Inst.PopupMessage("noads already", 3f); ProcessNoAds(); break; case RcBilling.E_BILLING_RESULT.Failed: // 실패. UIManager.Inst.PopupMessage("noads failed", 3f); break; } }