示例#1
0
 void OnInitializationFailed(object sender, InitializationEventArgs e)
 {
     Log("InitializationFailed: " + Json.Serialize(e.invalidIDs));
 }
示例#2
0
    void OnInitializationCompleted(object sender, InitializationEventArgs e)
    {
        Log("InitializationCompleted");

        SKProduct product = IAPXT.GetProduct(premiumProductID);

        if ( product == null )
        {
            Log ("Error: Product not defined: " + premiumProductID);
            return;
        }

        Log("title: " + product.localizedTitle);
        Log("description: " + product.localizedDescription);
        var price = product.price;
        Log("price type: " + price.GetType());
        Log("price: " + price);
        Log("localized price: " + product.localizedPrice);
    }