当前位置: 首页>>代码示例>>C#>>正文


C# Purchase.ToString方法代码示例

本文整理汇总了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();
 }
开发者ID:GrimReio,项目名称:OpenIAB,代码行数:5,代码来源:OpenIABTest.cs

示例2: consumePurchaseSucceededEvent

 private void consumePurchaseSucceededEvent(Purchase purchase)
 {
     Debug.Log("consumePurchaseSucceededEvent: " + purchase);
     _label = "CONSUMED: " + purchase.ToString();
 }
开发者ID:GrimReio,项目名称:OpenIAB,代码行数:5,代码来源:OpenIABTest.cs

示例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;
        }
    }
开发者ID:philzeh,项目名称:OpenIAB-angrybots,代码行数:18,代码来源:BillingDemo.cs

示例4: OnConsumePurchaseSucceeded

 private void OnConsumePurchaseSucceeded(Purchase purchase) {
     Debug.Log("Consume purchase succeded: " + purchase.ToString());
     _processingPayment = false;
 }
开发者ID:tracer8,项目名称:OpenIAB-angrybots,代码行数:4,代码来源:BillingDemo.cs

示例5: purchaseSucceededEvent

    //-------------------------------------------------------------------------
    private void purchaseSucceededEvent(Purchase purchase)
    {
        Debug.Log("purchaseSucceededEvent: " + purchase);
        mMsg = "PURCHASED Succeeded:" + purchase.ToString();

        NativeAPIMsgReceiver.instance().PayResult(_ePayOptionType.PurchaseProduct, true, purchase);
    }
开发者ID:yinlei,项目名称:GF.Core,代码行数:8,代码来源:Pay.cs

示例6: consumePurchaseSucceededEvent

    //-------------------------------------------------------------------------
    private void consumePurchaseSucceededEvent(Purchase purchase)
    {
        Debug.Log("consumePurchaseSucceededEvent: " + purchase);
        mMsg = "CONSUMED Succeeded: " + purchase.ToString();

        NativeAPIMsgReceiver.instance().PayResult(_ePayOptionType.ConsumeProduct, true, purchase);
    }
开发者ID:yinlei,项目名称:GF.Core,代码行数:8,代码来源:Pay.cs

示例7: purchaseSucceededEvent

    private void purchaseSucceededEvent(Purchase purchase)
    {
        _label = "PURCHASED:" + purchase.ToString();

        OpenIAB.consumeProduct(purchase);
    }
开发者ID:yakolla,项目名称:MarineVsAlien,代码行数:6,代码来源:ShopIAB.cs

示例8: ProcessRequest

 public override Enums.ApprovalResponse ProcessRequest(Purchase purchase)
 {
     Console.WriteLine("WAY too big purchase to approve!! {0}", purchase.ToString());
     return Enums.ApprovalResponse.Denied;
 }
开发者ID:jjokela,项目名称:DesignPatterns,代码行数:5,代码来源:EndOfChain.cs

示例9: consumePurchaseSucceededEvent

    private void consumePurchaseSucceededEvent(Purchase purchase)
    {
        _label = "CONSUMED: " + purchase.ToString();

        Const.SaveGame((SavedGameRequestStatus status)=>{

            OnSaveGame(status,  purchase);

        });
    }
开发者ID:yakolla,项目名称:MarineVsAlien,代码行数:10,代码来源:ShopIAB.cs

示例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;
    }
开发者ID:romanellius,项目名称:Divine_game,代码行数:14,代码来源:OpenIABTest.cs

示例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);
//		}
    }
开发者ID:mengtest,项目名称:Missile_Man,代码行数:21,代码来源:OpenIABTest.cs

示例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 ();
    }
开发者ID:nurfarazi,项目名称:musical-Piono-tiles-Unity3d,代码行数:11,代码来源:InPurchaseManager.cs

示例13: consumePurchaseSucceededEvent

 private void consumePurchaseSucceededEvent(Purchase purchase)
 {
     Debug.Log ("consumePurchaseSucceededEvent: " + purchase);
     //GameObject.Find ("purchaseLog").GetComponent<Text> ().text = "Consume Purchase Failed";
     _label = "CONSUMED: " + purchase.ToString ();
 }
开发者ID:nurfarazi,项目名称:musical-Piono-tiles-Unity3d,代码行数:6,代码来源:InPurchaseManager.cs


注:本文中的Purchase.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。