コード例 #1
0
 public void BuyIAPPProduct(IAPProduct product)
 {
     Executer.GetInstance().AddJob(() =>
     {
         GoogleIAPManager.GetInstance().BuyProduct(product.id);
     });
 }
コード例 #2
0
 private void Awake()
 {
     product = GoogleIAPManager.GetInstance().GetProductWithID(id);
     price   = (float)product.metadata.localizedPrice;
     base.Awake();
     priceText.text += " €";
 }
コード例 #3
0
 private void OnDisable()
 {
     GoogleAdsManager.GetInstance().UnsubscribeToRewardClaimed(AdRewardEarned);
     GoogleIAPManager.GetInstance().UnsubscribeToProductPurchased(IapProductPurchased);
 }