/// <summary>
 /// This will be called when Unibill has finished initialising.
 /// </summary>
 private void onBillerReady(UnibillState state)
 {
     if (isUnlock())
     {
         adb.BuyAdverts();            //GameObject.Find("AdvertsManager").GetComponent<AdvertsManager>().BuyAdverts();
     }
     UnityEngine.Debug.Log("onBillerReady:" + state);
 }
Example #2
0
    //初始化支付插件
    private void OnUniBillInitialised(UnibillState result)
    {
        if (result != UnibillState.SUCCESS)
        {
            Debug.LogError(result.ToString());
        }
        else
        {
            Debug.Log(result.ToString());

            Unibiller.onPurchaseCompleteEvent += OnPurchased;
            Unibiller.onPurchaseFailed        += OnPurchaseFailed;
            Unibiller.onPurchaseCancelled     += OnPurchaseCancelled;
        }
    }
 /// <summary>
 /// This will be called when Unibill has finished initialising.
 /// </summary>
 private void onBillerReady(UnibillState state)
 {
     UnityEngine.Debug.Log("onBillerReady:" + state);
     if (state != UnibillState.CRITICAL_ERROR)
     {
         Debug.Log("Available items:");
         foreach (var item in Unibiller.AllPurchasableItems)
         {
             if (item.AvailableToPurchase)
             {
                 Debug.Log(string.Join(" - ",
                                       new string[] {
                     item.localizedTitle,
                     item.localizedDescription,
                     item.isoCurrencySymbol,
                     item.priceInLocalCurrency.ToString(),
                     item.localizedPriceString
                 }));
             }
         }
     }
 }
Example #4
0
 /// <summary>
 /// This will be called when Unibill has finished initialising.
 /// </summary>
 private void onBillerReady(UnibillState state)
 {
     UnityEngine.Debug.Log("onBillerReady:" + state);
 }
 private static void onBillerReady(UnibillState state)
 {
     FuseLog(" UniBiller State " + state);
 }
Example #6
0
    //初始化支付插件
    private void OnUniBillInitialised(UnibillState result)
    {
        if (result != UnibillState.SUCCESS)
        {
            Debug.LogError(result.ToString());
        }
        else
        {
            Debug.Log(result.ToString());

            Unibiller.onPurchaseCompleteEvent += OnPurchased;
            Unibiller.onPurchaseFailed += OnPurchaseFailed;
            Unibiller.onPurchaseCancelled += OnPurchaseCancelled;
        }
    }
 private void onBillerReady(UnibillState state)
 {
     UnityEngine.Debug.Log("onBillerReady:" + state);
 }
 private static void onBillerReady(UnibillState state)
 {
     FuseLog (" UniBiller State " + state);
 }
Example #9
0
 /// <summary>
 /// Event Listeners
 /// </summary>
 void onBillerReady(UnibillState state)
 {
     Debug.Log("onBillerReady:" + state);
 }
 /// <summary>
 /// This will be called when Unibill has finished initialising.
 /// </summary>
 private void onBillerReady(UnibillState state)
 {
     Text.Value = "onBillerReady:" + state;
     ActivateTrigger("OnBillReady");
 }