//--------------------------------------------------------------------- public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result) { switch (option_type) { case _ePayOptionType.QueryInventory: break; case _ePayOptionType.PurchaseProduct: CasinosContext.Instance.UiEndWaiting(CasinosContext.Instance.ViewHelper); if (is_success) { Purchase purchase = (Purchase)result; if (ActionPayWithIAPSuccess != null) { ActionPayWithIAPSuccess(purchase); } } else { if (ActionPayWithIAPFailed != null) { ActionPayWithIAPFailed(result.ToString()); } } break; case _ePayOptionType.ConsumeProduct: break; default: break; } }
//--------------------------------------------------------------------- public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result) { // switch (option_type) // { // case _ePayOptionType.QueryInventory: // break; // case _ePayOptionType.PurchaseProduct: // //CasinosContext.Instance.UiEndWaiting(CasinosContext.Instance.ViewHelper); // if (is_success) // { // Purchase purchase = (Purchase)result; // if (ActionPayWithIAPSuccess != null) // { // ActionPayWithIAPSuccess(purchase); // } // } // else // { // if (ActionPayWithIAPFailed != null) // { // ActionPayWithIAPFailed(result.ToString()); // } // } // break; // case _ePayOptionType.ConsumeProduct: // break; // default: // break; // } }
//------------------------------------------------------------------------- public void PayResult(_ePayOptionType option_type, bool is_success, object result) { Debug.Log("PayResult::" + result); if (PayReceiverListener != null) { PayReceiverListener.PayResult(option_type, is_success, result); } }
//------------------------------------------------------------------------- public void PayResultIPA(_ePayOptionType option_type, bool is_success, object result) { Debug.Log("PayResultIPA::" + result); if (PayReceiverListener != null) { PayReceiverListener.PayResultIPA(option_type, is_success, result); } }
//------------------------------------------------------------------------- public void PayResult(_ePayOptionType option_type, bool is_success, object result) { Debug.Log("PayResult::" + result); }