本文整理汇总了C#中Purchase.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Purchase.ToString方法的具体用法?C# Purchase.ToString怎么用?C# Purchase.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Purchase
的用法示例。
在下文中一共展示了Purchase.ToString方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: purchaseSucceededEvent
private void purchaseSucceededEvent(Purchase purchase)
{
Debug.Log("purchaseSucceededEvent: " + purchase);
_label = "PURCHASED:" + purchase.ToString();
}
示例2: consumePurchaseSucceededEvent
private void consumePurchaseSucceededEvent(Purchase purchase)
{
Debug.Log("consumePurchaseSucceededEvent: " + purchase);
_label = "CONSUMED: " + purchase.ToString();
}
示例3: OnConsumePurchaseSucceeded
private void OnConsumePurchaseSucceeded(Purchase purchase)
{
Debug.Log("Consume purchase succeded: " + purchase.ToString());
_processingPayment = false;
switch (purchase.Sku) {
case SKU_MEDKIT:
_playerMedKitPack.Supply(1);
return;
case SKU_AMMO:
_playerAmmoBox.Supply(N_ROUNDS);
return;
default:
Debug.LogWarning("Unknown SKU: " + purchase.Sku);
return;
}
}
示例4: OnConsumePurchaseSucceeded
private void OnConsumePurchaseSucceeded(Purchase purchase) {
Debug.Log("Consume purchase succeded: " + purchase.ToString());
_processingPayment = false;
}
示例5: purchaseSucceededEvent
//-------------------------------------------------------------------------
private void purchaseSucceededEvent(Purchase purchase)
{
Debug.Log("purchaseSucceededEvent: " + purchase);
mMsg = "PURCHASED Succeeded:" + purchase.ToString();
NativeAPIMsgReceiver.instance().PayResult(_ePayOptionType.PurchaseProduct, true, purchase);
}
示例6: consumePurchaseSucceededEvent
//-------------------------------------------------------------------------
private void consumePurchaseSucceededEvent(Purchase purchase)
{
Debug.Log("consumePurchaseSucceededEvent: " + purchase);
mMsg = "CONSUMED Succeeded: " + purchase.ToString();
NativeAPIMsgReceiver.instance().PayResult(_ePayOptionType.ConsumeProduct, true, purchase);
}
示例7: purchaseSucceededEvent
private void purchaseSucceededEvent(Purchase purchase)
{
_label = "PURCHASED:" + purchase.ToString();
OpenIAB.consumeProduct(purchase);
}
示例8: ProcessRequest
public override Enums.ApprovalResponse ProcessRequest(Purchase purchase)
{
Console.WriteLine("WAY too big purchase to approve!! {0}", purchase.ToString());
return Enums.ApprovalResponse.Denied;
}
示例9: consumePurchaseSucceededEvent
private void consumePurchaseSucceededEvent(Purchase purchase)
{
_label = "CONSUMED: " + purchase.ToString();
Const.SaveGame((SavedGameRequestStatus status)=>{
OnSaveGame(status, purchase);
});
}
示例10: purchaseSucceededEvent
private void purchaseSucceededEvent(Purchase purchase)
{
Debug.Log("purchaseSucceededEvent: " + purchase);
_label = "PURCHASED:" + purchase.ToString();
OpenIABEventManageR.GetComponent<OpenIABEventManager>().bought = true;
foreach (MeshRenderer MR in blockSymbol)
{
MR.enabled = false;
}
PlayerPrefs.SetInt("bought", 1);
purchactiv = false;
OpenIABEventManageR.GetComponent<OpenIABEventManager>().purch = false;
}
示例11: purchaseSucceededEvent
private void purchaseSucceededEvent(Purchase purchase) {
Debug.Log("purchaseSucceededEvent: " + purchase);
_label = "PURCHASED:" + purchase.ToString();
Debug.Log(purchase.ToString());
switch (purchase.Sku) {
case SKU:
PlayerPrefs.SetInt("p1a5I8d", 951402483);
break;
default:
Debug.LogWarning("Unknown SKU: " + purchase.Sku);
break;
}
// if(purchase.ToString() == "SKU:missileman.paid;")
// {
// PlayerPrefs.SetInt("p1a5I8d", 951402483);
// }
// else if(purchase.ToString() == "SKU:android.test.canceled;")
// {
// PlayerPrefs.SetInt("p1a5I8d", 0);
// }
}
示例12: purchaseSucceededEvent
private void purchaseSucceededEvent(Purchase purchase)
{
if (purchase.Sku == SKU_remove_Ads) {
//GameObject.Find ("purchaseLog").GetComponent<Text> ().text = "Remove All Ads";
PlayerPrefs.SetInt ("SKU_remove_Ads", 1);
}
Debug.Log ("purchaseSucceededEvent: " + purchase);
_label = "PURCHASED:" + purchase.ToString ();
}
示例13: consumePurchaseSucceededEvent
private void consumePurchaseSucceededEvent(Purchase purchase)
{
Debug.Log ("consumePurchaseSucceededEvent: " + purchase);
//GameObject.Find ("purchaseLog").GetComponent<Text> ().text = "Consume Purchase Failed";
_label = "CONSUMED: " + purchase.ToString ();
}