Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 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
                 }));
             }
         }
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// This will be called when Unibill has finished initialising.
 /// </summary>
 private void onBillerReady(UnibillState state)
 {
     UnityEngine.Debug.Log("onBillerReady:" + state);
 }
Exemplo n.º 5
0
 private static void onBillerReady(UnibillState state)
 {
     FuseLog(" UniBiller State " + state);
 }
Exemplo n.º 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;
        }
    }
Exemplo n.º 7
0
 private void onBillerReady(UnibillState state)
 {
     UnityEngine.Debug.Log("onBillerReady:" + state);
 }
 private static void onBillerReady(UnibillState state)
 {
     FuseLog (" UniBiller State " + state);
 }
Exemplo n.º 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");
 }