Example #1
0
 public void Unlock()
 {
     if (!IsLock())
     {
         return;
     }
     if (Application.platform == RuntimePlatform.Android)
     {
         GetItForFree();
     }
     else
     {
         UIManager.ShowMiniShop(
             _iapType,
             _lockKey,
             (LockManager.IAP_TYPE iapType) => {
             _lockItemHandler.IapUnlock(iapType, (GameObject[] arrayLockItem) => {
                 _iapUnlockCallback(true);
             });
         },
             (bool isUnlocked) => {
             if (false == isUnlocked)
             {
                 return;
             }
             UnlockByInterstitialAds();
         },
             () => {
             // Loading loading = (Loading)Instantiate (Resources.Load<Loading> ("LoadingCustom"));
             // loading._nextSceneName = "SceneMap";
         }
             );
     }
 }
Example #2
0
 public void OnClickShop()
 {
     UIManager.ShowShop((LockManager.IAP_TYPE iapType) =>
     {
         _lockItemHandler.IapUnlock(iapType, (GameObject[] arrayLockItem) =>
         {
             //CheckHideShop(arrayLockItem);
             //ShowIapUnlockAction(arrayLockItem);
         });
     });
 }